From 2e852522b178e6e9b2f0cdb954ba44aa9e7d7c0d Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 27 May 2024 12:27:22 +1000 Subject: tests/extmod: Add .exp test files for asyncio.get_event_loop tests. And use `asyncio.new_event_loop()` where possible. This change is needed because CPython 3.12 deprecated the `get_event_loop()` function. Signed-off-by: Damien George --- tests/extmod/asyncio_loop_stop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/extmod/asyncio_loop_stop.py') 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): -- cgit v1.2.3