Skip to content

Commit 4d72d6a

Browse files
committed
update asyncio library and fix tests
1 parent c00e155 commit 4d72d6a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/extmod/asyncio_get_event_loop.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
print("SKIP")
77
raise SystemExit
88

9+
# CPython 3.12 deprecated calling get_event_loop() when there is no current event
10+
# loop, so to make this test run on CPython requires setting the event loop.
11+
if hasattr(asyncio, "set_event_loop"):
12+
asyncio.set_event_loop(asyncio.new_event_loop())
13+
914

1015
async def main():
1116
print("start")

0 commit comments

Comments
 (0)