From: Antoine Pitrou Date: Wed, 6 Apr 2011 20:54:14 +0000 (+0200) Subject: Issue #11766: increase countdown waiting for a pool of processes to start X-Git-Tag: v2.7.2rc1~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2b0d76bf3387cd4841acde40f232051d4ddf23f;p=thirdparty%2FPython%2Fcpython.git 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 0df2f7803bbe..fe19de037152 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1126,7 +1126,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)