summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-01-24 07:13:09 (GMT)
committerGitHub <noreply@github.com>2024-01-24 07:13:09 (GMT)
commitce75b4c26d18dcd840fd2e7ee362a84209648d06 (patch)
treecee0fdd57aed579acb65f3cd61c07f07ab8bd0a1 /Lib
parent82cd8fee31823b560e664f81b430a9186d6019dd (diff)
downloadcpython-ce75b4c26d18dcd840fd2e7ee362a84209648d06.zip
cpython-ce75b4c26d18dcd840fd2e7ee362a84209648d06.tar.gz
cpython-ce75b4c26d18dcd840fd2e7ee362a84209648d06.tar.bz2
gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start (GH-114249)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/_test_multiprocessing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 6a050fa..c0d3ca5 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()