From: Serhiy Storchaka Date: Wed, 24 Jan 2024 07:13:09 +0000 (+0200) Subject: gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start (GH... X-Git-Tag: v3.13.0a4~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce75b4c26d18dcd840fd2e7ee362a84209648d06;p=thirdparty%2FPython%2Fcpython.git gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start (GH-114249) --- diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 6a050fa541db..c0d3ca50f17d 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -2705,6 +2705,7 @@ class _TestPool(BaseTestCase): p = self.Pool(3) args = [sleep_time for i in range(10_000)] result = p.map_async(time.sleep, args, chunksize=1) + time.sleep(0.2) # give some tasks a chance to start p.terminate() p.join()