Kaydet (Commit) 04026cf5 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Try to fix sporadic test_multiprocessing failure

...@@ -11,6 +11,7 @@ import io ...@@ -11,6 +11,7 @@ import io
import sys import sys
import os import os
import gc import gc
import errno
import signal import signal
import array import array
import socket import socket
...@@ -1359,7 +1360,16 @@ class _TestManagerRestart(BaseTestCase): ...@@ -1359,7 +1360,16 @@ class _TestManagerRestart(BaseTestCase):
manager.shutdown() manager.shutdown()
manager = QueueManager( manager = QueueManager(
address=addr, authkey=authkey, serializer=SERIALIZER) 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() manager.shutdown()
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment