mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Fix timeout in test.fork_wait
This commit is contained in:
parent
150b06fa19
commit
8231d55cd4
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue