summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/asyncio_loop_stop.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/asyncio_loop_stop.py')
-rw-r--r--tests/extmod/asyncio_loop_stop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/asyncio_loop_stop.py b/tests/extmod/asyncio_loop_stop.py
index b4bd0c74ad..e2a4cdc1af 100644
--- a/tests/extmod/asyncio_loop_stop.py
+++ b/tests/extmod/asyncio_loop_stop.py
@@ -34,7 +34,7 @@ async def main():
loop.stop()
-loop = asyncio.get_event_loop()
+loop = asyncio.new_event_loop()
loop.create_task(main())
for i in range(3):