cpython: 3585cb1388f2 (original) (raw)

--- a/Lib/multiprocessing/pool.py +++ b/Lib/multiprocessing/pool.py @@ -576,6 +576,7 @@ class MapResult(ApplyResult): if chunksize <= 0: self._number_left = 0 self._event.set()

--- a/Lib/multiprocessing/process.py +++ b/Lib/multiprocessing/process.py @@ -262,11 +262,11 @@ class Process(object): except SystemExit as e: if not e.args: exitcode = 1

--- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -439,6 +439,36 @@ class _TestSubclassingProcess(BaseTestCa 1/0 # MARKER

+

+

+

+

+

+ # # # @@ -1342,6 +1372,18 @@ class _TestPool(BaseTestCase): join() self.assertLess(join.elapsed, 0.5)

+

+

+ def raising(): raise KeyError("key") @@ -2487,7 +2529,7 @@ class ProcessesMixin(object): 'Queue', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event', 'Value', 'Array', 'RawValue', 'RawArray', 'current_process', 'active_children', 'Pipe',

testcases_processes = create_test_cases(ProcessesMixin, type='processes') @@ -2501,7 +2543,7 @@ class ManagerMixin(object): locals().update(get_attributes(manager, ( 'Queue', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event', 'Value', 'Array', 'list', 'dict',

testcases_manager = create_test_cases(ManagerMixin, type='manager') @@ -2515,7 +2557,7 @@ class ThreadsMixin(object): 'Queue', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event', 'Value', 'Array', 'current_process', 'active_children', 'Pipe', 'connection', 'dict', 'list',

testcases_threads = create_test_cases(ThreadsMixin, type='threads')

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -21,6 +21,12 @@ Core and Builtins Library ------- +- Issue #13854: Make multiprocessing properly handle non-integer