Skip to content

Commit f25a8de

Browse files
committed
Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
1 parent ee42934 commit f25a8de

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Lib/test/test_multiprocessing.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,13 @@ def test_notify_all(self):
757757
cond.release()
758758

759759
# check they have all woken
760-
time.sleep(DELTA)
760+
for i in range(10):
761+
try:
762+
if get_value(woken) == 6:
763+
break
764+
except NotImplementedError:
765+
break
766+
time.sleep(DELTA)
761767
self.assertReturnsIfImplemented(6, get_value, woken)
762768

763769
# check state is not mucked up

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ Extensions
269269
Tests
270270
-----
271271

272+
- Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
273+
272274
- Fix possible "file already exists" error when running the tests in parallel.
273275

274276
- Issue #11719: Fix message about unexpected test_msilib skip on non-Windows

0 commit comments

Comments
 (0)