[Python-checkins] cpython (3.2): Issue #11790: Fix sporadic failures in

antoine.pitrou python-checkins at python.org
Sat Apr 16 21:03:06 CEST 2011


http://hg.python.org/cpython/rev/88f1907fe312
changeset: 69404:88f1907fe312
branch: 3.2
parent: 69402:11c489dc8cbd
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Apr 16 21:02:01 2011 +0200
summary:
 Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
files:
 Lib/test/test_multiprocessing.py | 8 +++++++-
 Misc/NEWS | 2 ++
 2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -757,7 +757,13 @@
 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
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -269,6 +269,8 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /