forked from M-Labs/artiq
1
0
Fork 0

test_rpctool: always create new asyncio event loop

This commit is contained in:
mntng 2017-08-29 16:00:09 +08:00 committed by Sébastien Bourdeauducq
parent 3952954c12
commit d19e70595a
1 changed files with 2 additions and 2 deletions

View File

@ -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: