From 8231d55cd40c8a02286605c68aec9d685fadf0cf Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 4 Sep 2014 01:02:17 +0200 Subject: [PATCH] Fix timeout in test.fork_wait --- Lib/test/fork_wait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/fork_wait.py b/Lib/test/fork_wait.py index 8c7c3aac99..713039dd82 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()) -- 2.50.1