From d19e70595a4ad5710589ae1070867a820937ca13 Mon Sep 17 00:00:00 2001 From: mntng Date: Tue, 29 Aug 2017 16:00:09 +0800 Subject: [PATCH] test_rpctool: always create new asyncio event loop --- artiq/test/test_rpctool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/test/test_rpctool.py b/artiq/test/test_rpctool.py index f07b2cb78..fb74395bf 100644 --- a/artiq/test/test_rpctool.py +++ b/artiq/test/test_rpctool.py @@ -29,9 +29,9 @@ class TestRPCTool(unittest.TestCase): def test_rpc(self): if os.name == "nt": loop = asyncio.ProactorEventLoop() - asyncio.set_event_loop(loop) else: - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) try: loop.run_until_complete(self.do_test()) finally: