diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-06 20:54:14 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-06 20:54:14 (GMT) |
| commit | c2b0d76bf3387cd4841acde40f232051d4ddf23f (patch) | |
| tree | ad9e278bb9bf1514f69ed95fdd8f7d0637369647 /Lib/test/test_multiprocessing.py | |
| parent | bb4e470dcd0fa5cf52e3217dab55c353c8ae923f (diff) | |
| download | cpython-c2b0d76bf3387cd4841acde40f232051d4ddf23f.zip cpython-c2b0d76bf3387cd4841acde40f232051d4ddf23f.tar.gz cpython-c2b0d76bf3387cd4841acde40f232051d4ddf23f.tar.bz2 | |
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 0df2f78..fe19de0 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) |
