[Python-checkins] cpython (2.7): Issue #11766: increase countdown waiting for a pool of processes to start

antoine.pitrou python-checkins at python.org
Wed Apr 6 23:01:40 CEST 2011


http://hg.python.org/cpython/rev/2e4cdaffe493
changeset:   69179:2e4cdaffe493
branch:      2.7
parent:      69170:da212fa62fea
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Apr 06 22:54:14 2011 +0200
summary:
  Issue #11766: increase countdown waiting for a pool of processes to start
up.  Hopefully fixes transient buildbot failures.

files:
  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
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1126,7 +1126,8 @@
         # 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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list