Skip to content

Commit 375e821

Browse files
committedJul 8, 2016
test/ctlmgr: keep trying to ping on OSError
Since Python 3.5.2, this exception can be raised on Windows when the connection fails.
1 parent 2a5a1f3 commit 375e821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎artiq/test/test_ctlmgr.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ async def wait_for_ping(self, host, port, retries=5, timeout=2):
5050
except asyncio.TimeoutError:
5151
timeout -= dt
5252
except (ConnectionAbortedError, ConnectionError,
53-
ConnectionRefusedError, ConnectionResetError):
53+
ConnectionRefusedError, ConnectionResetError,
54+
OSError):
5455
await asyncio.sleep(dt)
5556
timeout -= dt
5657
raise asyncio.TimeoutError

0 commit comments

Comments
 (0)
Please sign in to comment.