[Python-checkins] cpython: Fix timeout in test.fork_wait
victor.stinner
python-checkins at python.org
Thu Sep 4 01:03:03 CEST 2014
http://hg.python.org/cpython/rev/797c68e67188
changeset: 92319:797c68e67188
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Sep 04 01:02:17 2014 +0200
summary:
Fix timeout in test.fork_wait
files:
Lib/test/fork_wait.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/fork_wait.py b/Lib/test/fork_wait.py
--- a/Lib/test/fork_wait.py
+++ b/Lib/test/fork_wait.py
@@ -52,7 +52,7 @@
deadline = time.monotonic() + 10.0
while len(self.alive) < NUM_THREADS:
time.sleep(0.1)
- if time.monotonic() <= deadline:
+ if deadline < time.monotonic():
break
a = sorted(self.alive.keys())
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list