Skip to content

Commit 03f8f77

Browse files
[3.12] gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start (GH-114249) (GH-114516)
(cherry picked from commit ce75b4c) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 0c42897 commit 03f8f77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/_test_multiprocessing.py

+1
Original file line numberDiff line numberDiff line change
@@ -2705,6 +2705,7 @@ def test_terminate(self):
27052705
p = self.Pool(3)
27062706
args = [sleep_time for i in range(10_000)]
27072707
result = p.map_async(time.sleep, args, chunksize=1)
2708+
time.sleep(0.2) # give some tasks a chance to start
27082709
p.terminate()
27092710
p.join()
27102711

0 commit comments

Comments
 (0)