B
    U²È[k  ã               @   s   d Z ddlZdd„ ZdS )z_test utilities that use async/await syntax

a separate file to avoid syntax errors on Python 2
é    Nc              C   s,   t  ¡ } |  ¡ st‚dd„ }|  |ƒ ¡ dS )zASimple async function to schedule a task on the current eventloopc               Ó   s   t  d¡I d H  d S )Né   )ÚasyncioZsleep© r   r   ú7lib/python3.7/site-packages/ipykernel/tests/_asyncio.pyÚtask   s    zasync_func.<locals>.taskN)r   Zget_event_loopZ
is_runningÚAssertionErrorZcreate_task)Zloopr   r   r   r   Ú
async_func	   s    r   )Ú__doc__r   r   r   r   r   r   Ú<module>   s   