Kaydet (Commit) 8231d55c authored tarafından Victor Stinner's avatar Victor Stinner

Fix timeout in test.fork_wait

üst 150b06fa
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment