
    Gj                    r    S SK Jr  S SKrS SKJrJr  S SKJrJrJ	r	J
r
  S SKJrJr  \" S5      r " S S\S	9rg)
    )annotationsN)ABCMetaabstractmethod)AsyncGeneratorCallable	CoroutineIterable)AnyTypeVar_Tc                      \ rS rSrSrSS jr\        SS j5       r\      SS j5       r\      SS j5       r	\      SS j5       r
\SS j5       rS	rg
)
TestRunner   zf
Encapsulates a running event loop. Every call made through this object will use the
same event loop.
c                    U $ N selfs    T/Users/admin/workspace/tools/venv/lib/python3.13/site-packages/anyio/abc/_testing.py	__enter__TestRunner.__enter__   s        c                    g r   r   )r   exc_typeexc_valexc_tbs       r   __exit__TestRunner.__exit__   s     r   c                    g)z
Run an async generator fixture.

:param fixture_func: the fixture function
:param kwargs: keyword arguments to call the fixture function with
:return: an iterator yielding the value yielded from the async generator
Nr   r   fixture_funckwargss      r   run_asyncgen_fixtureTestRunner.run_asyncgen_fixture       r   c                    g)z
Run an async fixture.

:param fixture_func: the fixture function
:param kwargs: keyword arguments to call the fixture function with
:return: the return value of the fixture function
Nr   r    s      r   run_fixtureTestRunner.run_fixture*   r%   r   c                    g)z
Run an async test function.

:param test_func: the test function
:param kwargs: keyword arguments to call the test function with
Nr   )r   	test_funcr"   s      r   run_testTestRunner.run_test8   r%   r   c                    g)zw
Check if the test runner is running.

:return: ``True`` if the coroutine is currently being run, ``False`` otherwise.
Nr   r   s    r   
is_runningTestRunner.is_runningC   r%   r   r   N)returnr   )r   ztype[BaseException] | Noner   zBaseException | Noner   ztypes.TracebackType | Noner0   zbool | None)r!   z&Callable[..., AsyncGenerator[_T, Any]]r"   dict[str, Any]r0   zIterable[_T])r!   z&Callable[..., Coroutine[Any, Any, _T]]r"   r1   r0   r   )r*   z'Callable[..., Coroutine[Any, Any, Any]]r"   r1   r0   None)r0   bool)__name__
__module____qualname____firstlineno____doc__r   r   r   r#   r'   r+   r.   __static_attributes__r   r   r   r   r      s    
 , & +	
 
  <  
	  <  
	  @JX	   r   r   )	metaclass)
__future__r   typesabcr   r   collections.abcr   r   r   r	   typingr
   r   r   r   r   r   r   <module>r@      s,    "  ' I I T]>7 >r   