summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-18 00:16:14 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-18 00:16:14 +0200
commit3349bca46d66f993e97407ba756e3f515a863fad (patch)
treecda2f4acd5a813e81453d35a732167197611edfd /Lib
parent5ee0567bb2af1c81da72990c9b2cd199af2e2ace (diff)
downloadcpython-git-3349bca46d66f993e97407ba756e3f515a863fad.tar.gz
Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
written by Charles-François Natali.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/lock_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py
index ff30d41fb8..f0a24117f4 100644
--- a/Lib/test/lock_tests.py
+++ b/Lib/test/lock_tests.py
@@ -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