2019-11-13 05:08:22 -05:00
|
|
|
# Test get_event_loop()
|
|
|
|
|
|
|
|
try:
|
2023-06-08 02:01:38 -04:00
|
|
|
import asyncio
|
2019-11-13 05:08:22 -05:00
|
|
|
except ImportError:
|
2023-06-08 02:01:38 -04:00
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2019-11-13 05:08:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
async def main():
|
|
|
|
print("start")
|
|
|
|
await asyncio.sleep(0.01)
|
|
|
|
print("end")
|
|
|
|
|
|
|
|
|
|
|
|
loop = asyncio.get_event_loop()
|
|
|
|
loop.run_until_complete(main())
|