From: Antoine Pitrou Date: Wed, 6 Apr 2011 20:51:17 +0000 (+0200) Subject: Issue #11766: increase countdown waiting for a pool of processes to start X-Git-Tag: v3.2.1b1~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=540ab064e2bfa5c5b05ccc78f0401c240a78ff16;p=python Issue #11766: increase countdown waiting for a pool of processes to start up. Hopefully fixes transient buildbot failures. --- diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index ca20396616..768119c4c8 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)