diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-16 19:02:38 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-16 19:02:38 (GMT) |
commit | cf645db8090ab2a7e98d1fa2174f7a6620f85025 (patch) | |
tree | 883d01c80b9331e3916701452817c2d8b7101384 | |
parent | a4eb194ea6b2ec2b0bb4ce1ea1d65ade787bc728 (diff) | |
parent | f25a8de845d20349a265442eb0f3dcd71d0d7ac5 (diff) | |
download | cpython-cf645db8090ab2a7e98d1fa2174f7a6620f85025.zip cpython-cf645db8090ab2a7e98d1fa2174f7a6620f85025.tar.gz cpython-cf645db8090ab2a7e98d1fa2174f7a6620f85025.tar.bz2 |
Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
-rw-r--r-- | Lib/test/test_multiprocessing.py | 8 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index d53a0f8..a7f0391 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -769,7 +769,13 @@ class _TestCondition(BaseTestCase): cond.release() # check they have all woken - time.sleep(DELTA) + for i in range(10): + try: + if get_value(woken) == 6: + break + except NotImplementedError: + break + time.sleep(DELTA) self.assertReturnsIfImplemented(6, get_value, woken) # check state is not mucked up @@ -475,6 +475,8 @@ Extensions Tests ----- +- Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition. + - Fix possible "file already exists" error when running the tests in parallel. - Issue #11719: Fix message about unexpected test_msilib skip on non-Windows |