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.
2 parents 02ba73c + c824e9a commit 04026cfCopy full SHA for 04026cf
1 file changed
Lib/test/test_multiprocessing.py
@@ -11,6 +11,7 @@
11
import sys
12
import os
13
import gc
14
+import errno
15
import signal
16
import array
17
import socket
@@ -1359,7 +1360,16 @@ def test_rapid_restart(self):
1359
1360
manager.shutdown()
1361
manager = QueueManager(
1362
address=addr, authkey=authkey, serializer=SERIALIZER)
- manager.start()
1363
+ try:
1364
+ manager.start()
1365
+ except IOError as e:
1366
+ if e.errno != errno.EADDRINUSE:
1367
+ raise
1368
+ # Retry after some time, in case the old socket was lingering
1369
+ # (sporadic failure on buildbots)
1370
+ time.sleep(1.0)
1371
+ manager = QueueManager(
1372
+ address=addr, authkey=authkey, serializer=SERIALIZER)
1373
1374
1375
#
0 commit comments