mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
This commit is contained in:
commit
cf645db809
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue