From 375e821bd855e13fee9ba3ac3cb74c65320b4250 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 8 Jul 2016 12:40:04 +0800 Subject: [PATCH] test/ctlmgr: keep trying to ping on OSError Since Python 3.5.2, this exception can be raised on Windows when the connection fails. --- artiq/test/test_ctlmgr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/test/test_ctlmgr.py b/artiq/test/test_ctlmgr.py index 5acdcc1f9..a0a694740 100644 --- a/artiq/test/test_ctlmgr.py +++ b/artiq/test/test_ctlmgr.py @@ -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