Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.

This commit is contained in:
Antoine Pitrou 2011-04-16 21:02:01 +02:00
parent ee4293400c
commit f25a8de845
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -269,6 +269,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