U
    ‰ª/ek  ã                   @   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é   )ÚasyncioÚsleep© r   r   úB/tmp/pip-unpacked-wheel-g43y689f/ipykernel/tests/_asyncio_utils.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   