From: Victor Stinner Date: Tue, 17 May 2011 22:16:14 +0000 (+0200) Subject: Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch X-Git-Tag: v3.2.1rc2~148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3349bca46d66f993e97407ba756e3f515a863fad;p=thirdparty%2FPython%2Fcpython.git Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch written by Charles-François Natali. --- diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py index ff30d41fb80b..f0a24117f474 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 diff --git a/Misc/NEWS b/Misc/NEWS index c40136cca60c..eae29528ab31 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -75,6 +75,9 @@ Tools/Demos 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 Andreas Stührk.