| Server IP : 118.27.122.248 / Your IP : 216.73.217.6 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/site-packages/aiohttp/__pycache__/ |
Upload File : |
B
�Z�_+ � @ s� d dl Z d dlZd dlZd dlmZ d dlZd dlmZmZ d dl m
Z
ddlmZm
Z
mZmZmZmZmZmZ yd dlZW n ek
r� dZY nX yd dlZW n ek
r� dZY nX dd� Zd d
� Zejdd� �Zejd
d� �Zejdd� �Zejd.dd��Zdd� Z dd� Z!dd� Z"ejdd� �Z#ejdd� �Z$ejdd� �Zejd d!� �Z%ejd"d#� �Z&ejd$d%� �Z'ejd&d'� �Z(ejd(d)� �Z)ejd*d+� �Z*ejd,d-� �Z+dS )/� N)�Callable)�PY_37�isasyncgenfunction)�Application� )�BaseTestServer�
RawTestServer�
TestClient�
TestServer�loop_context�setup_test_loop�teardown_test_loop�unused_portc C s: | j ddddd� | j dddd d� | j d
dddd� d S )Nz--aiohttp-fast�
store_trueFz*run tests faster by disabling extra checks)�action�default�helpz--aiohttp-loopZstore�pyloopz:run tests with specific loop: pyloop, uvloop, tokio or allz--aiohttp-enable-loop-debugzenable event loop debug mode)Z addoption)�parser� r �H/opt/alt/python37/lib64/python3.7/site-packages/aiohttp/pytest_plugin.py�pytest_addoption! s r c sb | j � t� �rd�nt�� �r$d�ndS d�d| jkrH| jd7 _d�� ��fdd�}|| _ dS )zS
Allow fixtures to be coroutines. Run coroutine fixtures in an event loop.
TFN�request)r c sv |d }�r|d= d|j kr$td��|�d�� �rb�| |��� �fdd�}|�|� � ���� �S � ��| |��S d S )Nr �loopz^Asynchronous fixtures must depend on the 'loop' fixture or be used in tests depending from it.c s( y� � ��� �S tk
r" Y nX d S )N)�run_until_complete� __anext__�StopAsyncIterationr )�_loop�genr r � finalizer` s z8pytest_fixture_setup.<locals>.wrapper.<locals>.finalizer)�fixturenames� ExceptionZgetfixturevalueZaddfinalizerr r )�args�kwargsr r )�func�is_async_gen�
strip_request)r r r �wrapperK s
z%pytest_fixture_setup.<locals>.wrapper)r$ r �asyncio�iscoroutinefunction�argnames)Z
fixturedefr'