diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-16 19:02:01 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-16 19:02:01 (GMT) |
commit | f25a8de845d20349a265442eb0f3dcd71d0d7ac5 (patch) | |
tree | f71ac0463d5e22c65e64fa4bc9e6543b8df0fe93 /Lib/test/test_multiprocessing.py | |
parent | ee4293400cff1d5f9a7a6dd8e9aaa6ba6623e348 (diff) | |
download | cpython-f25a8de845d20349a265442eb0f3dcd71d0d7ac5.zip cpython-f25a8de845d20349a265442eb0f3dcd71d0d7ac5.tar.gz cpython-f25a8de845d20349a265442eb0f3dcd71d0d7ac5.tar.bz2 |
Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r-- | Lib/test/test_multiprocessing.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 768119c..2614689 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -757,7 +757,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 |