[Python-checkins] cpython (merge 3.2 -> default): Try to fix sporadic test_multiprocessing failure
antoine.pitrou
python-checkins at python.org
Tue Apr 5 18:13:24 CEST 2011
http://hg.python.org/cpython/rev/a9371cf1cc61
changeset: 69159:a9371cf1cc61
parent: 69156:c81ad4361c49
parent: 69158:8a65e6aff672
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Apr 05 18:13:06 2011 +0200
summary:
Try to fix sporadic test_multiprocessing failure
files:
Lib/test/test_multiprocessing.py | 12 +++++++++++-
1 files changed, 11 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
@@ -11,6 +11,7 @@
import sys
import os
import gc
+import errno
import signal
import array
import socket
@@ -1371,7 +1372,16 @@
manager.shutdown()
manager = QueueManager(
address=addr, authkey=authkey, serializer=SERIALIZER)
- manager.start()
+ try:
+ manager.start()
+ except IOError as e:
+ if e.errno != errno.EADDRINUSE:
+ raise
+ # Retry after some time, in case the old socket was lingering
+ # (sporadic failure on buildbots)
+ time.sleep(1.0)
+ manager = QueueManager(
+ address=addr, authkey=authkey, serializer=SERIALIZER)
manager.shutdown()
#
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list