tests: Rename uasyncio to asyncio.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
2fbc08c462
commit
6027c41c8f
17
tests/extmod/asyncio_get_event_loop.py
Normal file
17
tests/extmod/asyncio_get_event_loop.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Test get_event_loop()
|
||||
|
||||
try:
|
||||
import asyncio
|
||||
except ImportError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
|
||||
async def main():
|
||||
print("start")
|
||||
await asyncio.sleep(0.01)
|
||||
print("end")
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(main())
|
||||
Reference in New Issue
Block a user