summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-09-03 23:02:17 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-09-03 23:02:17 (GMT)
commit8231d55cd40c8a02286605c68aec9d685fadf0cf (patch)
treeb5d4edd330530e07a742e2a69cc2b067d9cda691
parent150b06fa196fccc6daabf40b5069022da1a9bce7 (diff)
downloadcpython-8231d55cd40c8a02286605c68aec9d685fadf0cf.zip
cpython-8231d55cd40c8a02286605c68aec9d685fadf0cf.tar.gz
cpython-8231d55cd40c8a02286605c68aec9d685fadf0cf.tar.bz2
Fix timeout in test.fork_wait
-rw-r--r--Lib/test/fork_wait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/fork_wait.py b/Lib/test/fork_wait.py
index 8c7c3aa..713039d 100644
--- a/Lib/test/fork_wait.py
+++ b/Lib/test/fork_wait.py
@@ -52,7 +52,7 @@ class ForkWait(unittest.TestCase):
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())