Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
17
venv/Lib/site-packages/ipykernel/tests/_asyncio_utils.py
Normal file
17
venv/Lib/site-packages/ipykernel/tests/_asyncio_utils.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""test utilities that use async/await syntax
|
||||
|
||||
a separate file to avoid syntax errors on Python 2
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
|
||||
|
||||
def async_func():
|
||||
"""Simple async function to schedule a task on the current eventloop"""
|
||||
loop = asyncio.get_event_loop()
|
||||
assert loop.is_running()
|
||||
|
||||
async def task():
|
||||
await asyncio.sleep(1)
|
||||
|
||||
loop.create_task(task())
|
||||
Loading…
Add table
Add a link
Reference in a new issue