Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f61b02 commit c824e9aCopy full SHA for c824e9a
1 file changed
Lib/test/test_multiprocessing.py
@@ -12,6 +12,7 @@
12
import sys
13
import os
14
import gc
15
+import errno
16
import signal
17
import array
18
import socket
@@ -1277,7 +1278,16 @@ def test_rapid_restart(self):
1277
1278
manager.shutdown()
1279
manager = QueueManager(
1280
address=addr, authkey=authkey, serializer=SERIALIZER)
- manager.start()
1281
+ try:
1282
+ manager.start()
1283
+ except IOError as e:
1284
+ if e.errno != errno.EADDRINUSE:
1285
+ raise
1286
+ # Retry after some time, in case the old socket was lingering
1287
+ # (sporadic failure on buildbots)
1288
+ time.sleep(1.0)
1289
+ manager = QueueManager(
1290
+ address=addr, authkey=authkey, serializer=SERIALIZER)
1291
1292
1293
#
0 commit comments