Kaydet (Commit) 3349bca4 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch

written by Charles-François Natali.
üst 5ee0567b
...@@ -472,7 +472,7 @@ class ConditionTests(BaseTestCase): ...@@ -472,7 +472,7 @@ class ConditionTests(BaseTestCase):
self.assertEqual(state, 4) self.assertEqual(state, 4)
b = Bunch(f, 1) b = Bunch(f, 1)
b.wait_for_started() b.wait_for_started()
for i in range(5): for i in range(4):
time.sleep(0.01) time.sleep(0.01)
with cond: with cond:
state += 1 state += 1
......
...@@ -75,6 +75,9 @@ Tools/Demos ...@@ -75,6 +75,9 @@ Tools/Demos
Tests Tests
----- -----
- Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
written by Charles-François Natali.
- Issue #11614: import __hello__ prints "Hello World!". Patch written by - Issue #11614: import __hello__ prints "Hello World!". Patch written by
Andreas Stührk. Andreas Stührk.
......
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