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

antoine.pitrou python-checkins at python.org
Wed Apr 6 22:54:54 CEST 2011


http://hg.python.org/cpython/rev/c4a514199dba
changeset:   69177:c4a514199dba
branch:      3.2
parent:      69175:867937dd2279
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Apr 06 22:51:17 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
@@ -1170,7 +1170,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