diff options
Diffstat (limited to 'tests/run/py35_asyncio_async_def.srctree')
-rw-r--r-- | tests/run/py35_asyncio_async_def.srctree | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/py35_asyncio_async_def.srctree b/tests/run/py35_asyncio_async_def.srctree index 9da5560b3..457ef9dae 100644 --- a/tests/run/py35_asyncio_async_def.srctree +++ b/tests/run/py35_asyncio_async_def.srctree @@ -24,7 +24,7 @@ from contextlib import closing async def main(): await cy_test.say() -with closing(asyncio.get_event_loop()) as loop: +with closing(asyncio.new_event_loop()) as loop: print("Running Python coroutine ...") loop.run_until_complete(main()) |