summaryrefslogtreecommitdiff
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-06 22:54:14 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-06 22:54:14 +0200
commitefbcb18997cf0d25b9d778e2967ec31856547684 (patch)
tree6fe4edd303e2da307fc280e57c56776fef09ac31 /Lib/test/test_multiprocessing.py
parent59c8ac71f777f7b3cb22613eca83fc7247b78929 (diff)
parent540ab064e2bfa5c5b05ccc78f0401c240a78ff16 (diff)
downloadcpython-git-efbcb18997cf0d25b9d778e2967ec31856547684.tar.gz
Issue #11766: increase countdown waiting for a pool of processes to start
up. Hopefully fixes transient buildbot failures.
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)