diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-06 22:54:14 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-06 22:54:14 +0200 |
commit | c2b0d76bf3387cd4841acde40f232051d4ddf23f (patch) | |
tree | ad9e278bb9bf1514f69ed95fdd8f7d0637369647 /Lib/test/test_multiprocessing.py | |
parent | bb4e470dcd0fa5cf52e3217dab55c353c8ae923f (diff) | |
download | cpython-git-c2b0d76bf3387cd4841acde40f232051d4ddf23f.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.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 0df2f7803b..fe19de0371 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) |