diff options
author | Damien George <damien@micropython.org> | 2024-05-27 12:27:22 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-05-27 13:56:55 +1000 |
commit | 2e852522b178e6e9b2f0cdb954ba44aa9e7d7c0d (patch) | |
tree | b169c235d99799719e647ff8d34a8e3a89a02c8c /tests/extmod/asyncio_loop_stop.py | |
parent | 1ea06b99d8cc0cbcdb6d136eee607db67d12b37c (diff) | |
download | micropython-2e852522b178e6e9b2f0cdb954ba44aa9e7d7c0d.tar.gz micropython-2e852522b178e6e9b2f0cdb954ba44aa9e7d7c0d.zip |
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 <damien@micropython.org>
Diffstat (limited to 'tests/extmod/asyncio_loop_stop.py')
-rw-r--r-- | tests/extmod/asyncio_loop_stop.py | 2 |
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): |