summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-06 20:51:17 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-06 20:51:17 (GMT)
commit540ab064e2bfa5c5b05ccc78f0401c240a78ff16 (patch)
tree84062201412c88c1ada1f99f42ab9417ddf15d7d
parent3178b7dee17bf535b08421a7fe39965ff792c2c7 (diff)
downloadcpython-540ab064e2bfa5c5b05ccc78f0401c240a78ff16.zip
cpython-540ab064e2bfa5c5b05ccc78f0401c240a78ff16.tar.gz
cpython-540ab064e2bfa5c5b05ccc78f0401c240a78ff16.tar.bz2
Issue #11766: increase countdown waiting for a pool of processes to start
up. Hopefully fixes transient buildbot failures.
-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 ca20396..768119c 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1170,7 +1170,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)