mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
written by Charles-François Natali.
This commit is contained in:
parent
5ee0567bb2
commit
3349bca46d
@ -472,7 +472,7 @@ class ConditionTests(BaseTestCase):
|
||||
self.assertEqual(state, 4)
|
||||
b = Bunch(f, 1)
|
||||
b.wait_for_started()
|
||||
for i in range(5):
|
||||
for i in range(4):
|
||||
time.sleep(0.01)
|
||||
with cond:
|
||||
state += 1
|
||||
|
Loading…
Reference in New Issue
Block a user