o
    Ci                     @   sN   d dl Z d dlmZmZ d dlZd dlZejdd Ze jdddd Z	dS )	    N)wrapspartialc                   c   s    dV  d S )N
mock_sleep r   r   r   R/home/kuhnn/.local/lib/python3.10/site-packages/async_generator/_tests/conftest.pyr      s   
r   T)tryfirstc                    s4   t | jr| j t  fdd}|| _d S d S )Nc                     sH    di | }z	 | d }|dkrtd|q	 ty#   Y d S w )NTr   zcoroutine runner confused: {!r}r   )sendRuntimeErrorformatStopIteration)kwargscorovaluefnr   r   wrapper   s   
z#pytest_pyfunc_call.<locals>.wrapper)inspectiscoroutinefunctionobjr   )
pyfuncitemr   r   r   r   pytest_pyfunc_call   s   
r   )
pytest	functoolsr   r   r   types	coroutiner   hookimplr   r   r   r   r   <module>   s    


