summaryrefslogtreecommitdiff
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r--Lib/test/test_multiprocessing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 246d2d5700..d53a0f859c 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1182,7 +1182,8 @@ class _TestPoolWorkerLifetime(BaseTestCase):
# Refill the pool
p._repopulate_pool()
# Wait until all workers are alive
- countdown = 5
+ # (countdown * DELTA = 5 seconds max startup process time)
+ countdown = 50
while countdown and not all(w.is_alive() for w in p._pool):
countdown -= 1
time.sleep(DELTA)