diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-17 22:20:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-17 22:20:18 (GMT) |
commit | 5f3b1c4979fc03624b2f54ef8b156dd652b85c5c (patch) | |
tree | 1448785efe111d8d85031634187033cd41a65000 /Lib/test/lock_tests.py | |
parent | 1cb08c3f838524827cb054f016849a28aa49549c (diff) | |
parent | 3349bca46d66f993e97407ba756e3f515a863fad (diff) | |
download | cpython-5f3b1c4979fc03624b2f54ef8b156dd652b85c5c.zip cpython-5f3b1c4979fc03624b2f54ef8b156dd652b85c5c.tar.gz cpython-5f3b1c4979fc03624b2f54ef8b156dd652b85c5c.tar.bz2 |
(Merge 3.2) Issue #12096: Fix a race condition in
test_threading.test_waitfor(). Patch written by Charles-François Natali.
Diffstat (limited to 'Lib/test/lock_tests.py')
-rw-r--r-- | Lib/test/lock_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py index 3ed61f3..126f97c 100644 --- a/Lib/test/lock_tests.py +++ b/Lib/test/lock_tests.py @@ -474,7 +474,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 |