mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
test/ctlmgr: keep trying to ping on OSError
Since Python 3.5.2, this exception can be raised on Windows when the connection fails.
This commit is contained in:
parent
2a5a1f320f
commit
375e821bd8
@ -50,7 +50,8 @@ class ControllerCase(unittest.TestCase):
|
||||
except asyncio.TimeoutError:
|
||||
timeout -= dt
|
||||
except (ConnectionAbortedError, ConnectionError,
|
||||
ConnectionRefusedError, ConnectionResetError):
|
||||
ConnectionRefusedError, ConnectionResetError,
|
||||
OSError):
|
||||
await asyncio.sleep(dt)
|
||||
timeout -= dt
|
||||
raise asyncio.TimeoutError
|
||||
|
Loading…
Reference in New Issue
Block a user