Skip to content

Commit

Permalink
test/ctlmgr: keep trying to ping on OSError
Browse files Browse the repository at this point in the history
Since Python 3.5.2, this exception can be raised on Windows when the
connection fails.
sbourdeauducq committed Jul 8, 2016
1 parent 2a5a1f3 commit 375e821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artiq/test/test_ctlmgr.py
Original file line number Diff line number Diff line change
@@ -50,7 +50,8 @@ async def wait_for_ping(self, host, port, retries=5, timeout=2):
except asyncio.TimeoutError:
timeout -= dt
except (ConnectionAbortedError, ConnectionError,
ConnectionRefusedError, ConnectionResetError):
ConnectionRefusedError, ConnectionResetError,
OSError):
await asyncio.sleep(dt)
timeout -= dt
raise asyncio.TimeoutError

0 comments on commit 375e821

Please sign in to comment.