HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib64/python3.10/site-packages/anyio/abc/__pycache__/_testing.cpython-310.pyc
o

�h�@sjddlmZddlZddlmZmZddlmZmZm	Z	m
Z
ddlmZm
Z
e
d�ZGdd�ded	�ZdS)
�)�annotationsN)�ABCMeta�abstractmethod)�AsyncGenerator�Callable�	Coroutine�Iterable)�Any�TypeVar�_Tc@sReZdZdZddd�Zed dd
��Zed!dd��Zed"dd��Zed#dd��Z	dS)$�
TestRunnerzr
    Encapsulates a running event loop. Every call made through this object will use the
    same event loop.
    �returncCs|S�N�)�selfrr�E/usr/local/CyberCP/lib/python3.10/site-packages/anyio/abc/_testing.py�	__enter__szTestRunner.__enter__�exc_type�type[BaseException] | None�exc_val�BaseException | None�exc_tb�types.TracebackType | None�bool | NonecCsdSrr)rrrrrrr�__exit__szTestRunner.__exit__�fixture_func�&Callable[..., AsyncGenerator[_T, Any]]�kwargs�dict[str, Any]�Iterable[_T]cC�dS)a
        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�rrrrrr�run_asyncgen_fixture�zTestRunner.run_asyncgen_fixture�&Callable[..., Coroutine[Any, Any, _T]]rcCr )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
        Nrr!rrr�run_fixture*r#zTestRunner.run_fixture�	test_func�'Callable[..., Coroutine[Any, Any, Any]]�NonecCr )z�
        Run an async test function.

        :param test_func: the test function
        :param kwargs: keyword arguments to call the test function with
        Nr)rr&rrrr�run_test8r#zTestRunner.run_testN)r
r)rrrrrrr
r)rrrrr
r)rr$rrr
r)r&r'rrr
r()
�__name__�
__module__�__qualname__�__doc__rrrr"r%r)rrrrrs


r)�	metaclass)�
__future__r�types�abcrr�collections.abcrrrr�typingr	r
rrrrrr�<module>s