o
    v&it                  	   @  sj  d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddlmZmZ ddlmZmZmZmZmZmZmZ ddlmZmZ ddlmZmZmZmZmZ ddl Z ddl!Z!ddl"m#Z# dd	l$m%Z% dd
l!m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0 e
j1dkrddlm2Z2 nddl3m2Z2 e
j1dkrddlm4Z4 nddl5m4Z4 ed Z6edee ee B dZ7edZ8ee8e7f Z9G dd de:Z;G dd de<ej=Z>dZ?dddZ@ed d d d d d d!dd0d1ZAe	 dd d d d d dd!dd3d1ZA		ddd8d1ZAdd:d;ZBdd<d=ZCdd>d?ZDddBdCZEddDdEZFdFZGddIdJZHddKdLZIe!jJdMdNddPdQZKddYdZZLed[ZMed\ZNdd_d`ZOedaZPedbZQddedfZRddjdkZSG dldm dme)ZTG dndo doeTZUG dpdq dqeTZVG drds dseTZWG dtdu dueTZXe!jJdvdMdwdd|d}ZYejZdddZ[dddZ\dddZ]	ddddZ^dddZ_e!jJdMdMddddZ`dddZae!jJdMddddZbdZcdZddddZedddZfdZgdddZhe%D ]Zieheijjek deijj d< qe!jAddMddddZldddZmdddZne!jAdddZoe!jAdddZpe!jAdddddZqe!jAdddddZrdS )zpytest-asyncio implementation.    )annotationsN)AbstractEventLoopAbstractEventLoopPolicy)AsyncIterator	AwaitableCallable	GeneratorIterableIteratorSequence)AsyncGeneratorTypeCoroutineType)AnyLiteral	ParamSpecTypeVaroverload)resolve_fixture_function)Scope)Config
FixtureDefFixtureRequestFunctionItemMarkMonkeyPatchParserPytestCollectionWarningPytestDeprecationWarningPytestPluginManager)      )Runner)r       )TypeIs)sessionpackagemoduleclassfunction_R)bound_Pc                   @  s   e Zd ZdZdS )PytestAsyncioErrorz2Base class for exceptions raised by pytest-asyncioN)__name__
__module____qualname____doc__ r2   r2   [/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/pytest_asyncio/plugin.pyr-   D   s    r-   c                   @  s   e Zd ZdZdZdS )ModeautostrictN)r.   r/   r0   AUTOSTRICTr2   r2   r2   r3   r4   H   s    r4   z'auto' - for automatically handling all async functions by the plugin
'strict' - for autoprocessing disabling (useful if different async frameworks should be tested together, e.g. both pytest-asyncio and pytest-trio are used in the same project)
parserr   pluginmanagerr   returnNonec                 C  s|   |  d}|jddd dtd |jdddd d	d
 | jdddd | jdd	ddd | jdddd d | jddddd d S )Nasyncioz--asyncio-modeasyncio_modeMODE)destdefaultmetavarhelpz--asyncio-debugasyncio_debug
store_truez4enable asyncio debug mode for the default event loop)r@   actionrA   rC   z default value for --asyncio-moder6   )rC   rA   boolfalse)rC   typerA   "asyncio_default_fixture_loop_scopestringzFdefault scope of the asyncio event loop used to execute async fixtures)rI   rC   rA   asyncio_default_test_loop_scopez=default scope of the asyncio event loop used to execute testsr)   )getgroup	addoptionASYNCIO_MODE_HELPaddini)r9   r:   groupr2   r2   r3   pytest_addoptionU   sL   

rR   .)scope
loop_scopeparamsautouseidsnamefixture_functionFixtureFunction[_P, _R]rS   0_ScopeName | Callable[[str, Config], _ScopeName]rT   _ScopeName | NonerU   Iterable[object] | NonerV   rG   rW   QIterable[str | float | int | bool | None] | Callable[[Any], object | None] | NonerX   
str | Nonec                C     d S Nr2   rY   rS   rT   rU   rV   rW   rX   r2   r2   r3   fixture~      rc   <Callable[[FixtureFunction[_P, _R]], FixtureFunction[_P, _R]]c                C  r`   ra   r2   rb   r2   r2   r3   rc      rd   FixtureFunction[_P, _R] | Nonekwargsr   VFixtureFunction[_P, _R] | Callable[[FixtureFunction[_P, _R]], FixtureFunction[_P, _R]]c                   sB   | d urt |  tj| fi  S ttd fdd}|S )NrY   rZ   r;   c                   s   t | fdi S )NrT   )rc   )rY   rg   rT   r2   r3   inner   s   zfixture.<locals>.inner)rY   rZ   r;   rZ   )_make_asyncio_fixture_functionpytestrc   	functoolswraps)rY   rT   rg   rj   r2   ri   r3   rc      s   
objc                 C  s   t | d| } t | ddS )N__func___force_asyncio_fixtureF)getattrro   r2   r2   r3   _is_asyncio_fixture_function   s   rt   c                 C  s    t | dr| j} d| _|| _d S )Nrp   T)hasattrrp   rq   _loop_scope)ro   rT   r2   r2   r3   rk      s   

rk   c                 C  s   t | p	t | S ra   )inspectiscoroutinefunctionisasyncgenfunctionrs   r2   r2   r3   _is_coroutine_or_asyncgen   s   rz   configr   c              
   C  sl   |  d}|d u r| d}zt|W S  ty5 } zddd tD }t|d| d|d }~ww )Nr>   , c                 s  s    | ]}|j V  qd S ra   value).0mr2   r2   r3   	<genexpr>   s    z$_get_asyncio_mode.<locals>.<genexpr>z+ is not a valid asyncio_mode. Valid modes: .)	getoptiongetinir4   
ValueErrorjoinrl   
UsageError)r{   valemodesr2   r2   r3   _get_asyncio_mode   s   


r   c                 C  s2   |  d}|d u r| d}t|tr|S |dkS )NrD   true)r   r   
isinstancerG   )r{   r   r2   r2   r3   _get_asyncio_debug   s   


r   a  The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"
option_namestrc              	   C  sH   | d u rd S dd t D }| |vr"t| d| dd| dd S )Nc                 S  s   g | ]}|j qS r2   r}   )r   sr2   r2   r3   
<listcomp>   s    z#_validate_scope.<locals>.<listcomp>z is not a valid z. Valid scopes are: r|   r   )r   rl   r   r   )rS   r   valid_scopesr2   r2   r3   _validate_scope   s   r   c                 C  sJ   |  d}t|d |sttt |  d}t|d | dd d S )NrJ   rL   markerszQasyncio: mark the test as a coroutine, it will be run using an asyncio event loop)r   r   warningswarnr   !_DEFAULT_FIXTURE_LOOP_SCOPE_UNSETaddinivalue_line)r{   default_fixture_loop_scopedefault_test_loop_scoper2   r2   r3   pytest_configure   s   



r   T)tryfirst	list[str]c                 C  sV   t | }t| }| d}t| }d| d| d| d| g}dd| gS )z$Add asyncio config to pytest header.rJ   zmode=zdebug=z#asyncio_default_fixture_loop_scope=z asyncio_default_test_loop_scope=z	asyncio: r|   )r   r   r   _get_default_test_loop_scoper   )r{   modedebugr   r   headerr2   r2   r3   pytest_report_header  s   
r   
fixturedefr   runnerr"   requestr   r   c                 C  s@   t | |}t| jrt|||S t| jrt|||S | jS )z@Returns a synchronous function evaluating the specified fixture.)r   rw   ry   func_wrap_asyncgen_fixturerx   _wrap_async_fixture)r   r   r   rY   r2   r2   r3   _fixture_synchronizer  s   
r   AsyncGenFixtureParamsAsyncGenFixtureYieldTypeRCallable[AsyncGenFixtureParams, AsyncGeneratorType[AsyncGenFixtureYieldType, Any]]9Callable[AsyncGenFixtureParams, AsyncGenFixtureYieldType]c                       t  d fdd}|S )NargsAsyncGenFixtureParams.argsrg   AsyncGenFixtureParams.kwargsc                    s\   | i |fdd}t   j|  d}t d fdd}| |S )	Nc                    s      I d H } | S ra   )	__anext__resgen_objr2   r3   setup4  s   zH_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setupcontextr;   r<   c                    s4   dfdd} j |   d dur  dS dS )zYield again, to finalize.r;   r<   c                    s>   z	   I d H  W n
 ty   Y d S w d} | d7 } t| )Nz$Async generator fixture didn't stop.zYield only once.)r   StopAsyncIterationr   )msgr   r2   r3   async_finalizer@  s   ze_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer.<locals>.async_finalizerr   Nr;   r<   run)r   )r   r   reset_contextvarsr   r2   r3   	finalizer=  s
   

zL_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizerr   contextvarscopy_contextr   _apply_contextvar_changesaddfinalizer)r   rg   r   resultr   rY   r   r   )r   r   r   r3   _asyncgen_fixture_wrapper-  s   
z9_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper)r   r   rg   r   rm   rn   )rY   r   r   r   r2   r   r3   r   &  s   #r   AsyncFixtureParamsAsyncFixtureReturnTypeMCallable[AsyncFixtureParams, CoroutineType[Any, Any, AsyncFixtureReturnType]]4Callable[AsyncFixtureParams, AsyncFixtureReturnType]c                   r   )Nr   AsyncFixtureParams.argsrg   AsyncFixtureParams.kwargsc                    sF    fdd}t  }j| |d}t|}|d ur!| |S )Nc                    s    i I d H } | S ra   r2   r   )r   rY   rg   r2   r3   r   d  s   zB_wrap_async_fixture.<locals>._async_fixture_wrapper.<locals>.setupr   r   )r   rg   r   r   r   r   r   )r   rg   r3   _async_fixture_wrapper_  s   

z3_wrap_async_fixture.<locals>._async_fixture_wrapper)r   r   rg   r   r   )rY   r   r   r   r2   r   r3   r   X  s   r   r   contextvars.ContextCallable[[], None] | Nonec              	     sr   g  | D ](}z|  |  |u rW qW n	 ty   Y nw ||  |} ||f q s1dS  fdd}|S )z
    Copy contextvar changes from the given context to the current context.

    If any contextvars were modified by the fixture, return a finalizer that
    will restore them.
    Nc                    s&    r   \} }| |  sd S d S ra   )popreset)vartokencontext_tokensr2   r3   restore_contextvars  s   
z6_apply_contextvar_changes.<locals>.restore_contextvars)getLookupErrorsetappend)r   r   r   r   r2   r   r3   r   |  s   	r   c                      sx   e Zd ZdZedddZedd	d
ZedddZd fddZ	d fddZ
ejdddZedddZ  ZS )PytestAsyncioFunctionz<Base class for all test functions managed by pytest-asyncio.itemr   r;   "type[PytestAsyncioFunction] | Nonec                C  s$   |   D ]}||r|  S qdS )z
        Returns a subclass of PytestAsyncioFunction if there is a specialized subclass
        for the specified function item.

        Return None if no specialized subclass exists for the specified item.
        N)__subclasses___can_substitute)clsr   subclassr2   r2   r3   item_subclass_for  s
   
z'PytestAsyncioFunction.item_subclass_forr)   c             	   C  sd   | dsJ |jdusJ | j|j|jt|dd|j|j|j|jd}|j	|_	|j	|j	ks0J |S )zq
        Instantiates this specific PytestAsyncioFunction type from the specified
        Function item.
        r=   Ncallspec)rX   r   callobjfixtureinfokeywordsoriginalname)
get_closest_markerparentfrom_parentrX   rr   ro   _fixtureinfor   r   own_markers)r   r)   subclass_instancer2   r2   r3   _from_function  s   
	z$PytestAsyncioFunction._from_functionrG   c                 C  s   t  )zDReturns whether the specified function can be replaced by this class)NotImplementedErrorr   r2   r2   r3   r        z%PytestAsyncioFunction._can_substituter<   c                   s.   d| j  d}|| jvr| j| t  S N__scoped_runner)rv   fixturenamesr   superr   )selfrunner_fixture_id	__class__r2   r3   r     s   

zPytestAsyncioFunction.setupc                   s   d| j  d}| j|}t }tt| j ||}t	 }|j
g | j|R   t   W d    d S 1 s:w   Y  d S r   )rv   _requestgetfixturevaluer   r   _synchronize_coroutinerr   _synchronization_target_attrr   r   setattrr   runtest)r   r   r   r   synchronized_objcr   r2   r3   r    s   
"zPytestAsyncioFunction.runtest
_ScopeNamec                 C  s*   |  d}|dusJ t| j}t||S )az  
        Return the scope of the asyncio event loop this item is run in.

        The effective scope is determined lazily. It is identical to to the
        `loop_scope` value of the closest `asyncio` pytest marker. If no such
        marker is present, the the loop scope is determined by the configuration
        value of `asyncio_default_test_loop_scope`, instead.
        r=   N)r   r   r{   _get_marked_loop_scope)r   markerdefault_loop_scoper2   r2   r3   rv     s   



z!PytestAsyncioFunction._loop_scopetuple[object, str]c                 C  s   | dfS )a-  
        Return the coroutine that needs to be synchronized during the test run.

        This method is inteded to be overwritten by subclasses when they need to apply
        the coroutine synchronizer to a value that's different from self.obj
        e.g. the AsyncHypothesisTest subclass.
        ro   r2   r   r2   r2   r3   r    s   	z2PytestAsyncioFunction._synchronization_target_attr)r   r   r;   r   r)   r   r;   r   r   r   r;   rG   r   )r;   r  r;   r  )r.   r/   r0   r1   classmethodr   r   staticmethodr   r   r  rm   cached_propertyrv   propertyr  __classcell__r2   r2   r   r3   r     s    r   c                   @     e Zd ZdZed	ddZdS )
	Coroutinez"Pytest item created by a coroutiner   r   r;   rG   c                 C     | j }t|S ra   )ro   rw   rx   r   r   r2   r2   r3   r        
zCoroutine._can_substituteNr  r.   r/   r0   r1   r  r   r2   r2   r2   r3   r    s    r  c                      s4   e Zd ZdZedddZed fd	d
Z  ZS )AsyncGeneratorz0Pytest item created by an asynchronous generatorr   r   r;   rG   c                 C  r  ra   )ro   rw   ry   r  r2   r2   r3   r     r  zAsyncGenerator._can_substituter)   c                  sB   t  |}d|j d}|t| |tjjd|d |S )Nz:Tests based on asynchronous generators are not supported. z will be ignored.F)r   reason)	r   r   rX   r   r   
add_markerrl   markxfail)r   r)   async_gen_itemunsupported_item_type_messager   r2   r3   r     s   zAsyncGenerator._from_functionr  r  )	r.   r/   r0   r1   r  r   r  r   r  r2   r2   r   r3   r    s    r  c                   @  r  )
AsyncStaticMethodzf
    Pytest item that is a coroutine or an asynchronous generator
    decorated with staticmethod
    r   r   r;   rG   c                 C  s   | j }t|tot|jS ra   )ro   r   r  rz   rp   r  r2   r2   r3   r     s   z!AsyncStaticMethod._can_substituteNr  r  r2   r2   r2   r3   r#    s    r#  c                      s>   e Zd ZdZd fddZedd	d
ZedddZ  Z	S )AsyncHypothesisTestzh
    Pytest item that is coroutine or an asynchronous generator decorated by
    @hypothesis.given.
    r;   r<   c                   s8   t | jddst | jddrtd| d t  S )N
hypothesisFis_hypothesis_testztest function `zU` is using Hypothesis, but pytest-asyncio only works with Hypothesis 3.64.0 or later.)rr   ro   rl   failr   r   r  r   r2   r3   r   %  s   

zAsyncHypothesisTest.setupr   r   rG   c                 C  s,   | j }t|ddot|dd ot|jjS )Nr&  Fr%  )ro   rr   rw   rx   r%  
inner_testr  r2   r2   r3   r   /  s   
z#AsyncHypothesisTest._can_substituter  c                 C  s   | j jdfS )Nr(  )ro   r%  r  r2   r2   r3   r  8  s   z0AsyncHypothesisTest._synchronization_target_attrr   r  r  )
r.   r/   r0   r1   r   r  r   r  r  r  r2   r2   r   r3   r$    s    
r$  pytest_pycollect_makeitem)specnamehookwrapper	collectorpytest.Module | pytest.Classobject$Generator[None, pluggy.Result, None]c              
   c  s    dV }z|  }W n ty" } z|| W Y d}~dS d}~ww |s'dS t|tr1t|}nt|f}g }|D ]1}|}	t|trft|}
|
rft	|j
tjkr\|ds\|d |drf|
|}	||	 q:|| dS )zl
    Converts coroutines and async generators collected as pytest.Functions
    to AsyncFunction items.
    Nr=   )
get_resultBaseExceptionforce_exceptionr   r   iterr   r   r   r   r{   r4   r7   r   r  r   r   force_result)r,  rX   ro   hook_resultnode_or_list_of_nodesr   node_iteratorupdated_node_collectionnodeupdated_itemspecialized_item_classr2   r2   r3   =pytest_pycollect_makeitem_convert_async_functions_to_subclass?  sB   








r<  policyr   Iterator[None]c                 c  sb    t  }zt }W n ty   d }Y nw t|  zd V  W t| t| d S t| t| w ra   )_get_event_loop_policy_get_event_loop_no_warnRuntimeError_set_event_loop_policy_set_event_loop)r=  old_loop_policyold_loopr2   r2   r3   _temporary_event_loop_policyf  s   

rF  c                   C  s@   t   t dt t W  d    S 1 sw   Y  d S Nignore)r   catch_warningssimplefilterDeprecationWarningr=   get_event_loop_policyr2   r2   r2   r3   r?  u  s   
$r?  c                 C  D   t   t dt t|  W d    d S 1 sw   Y  d S rG  )r   rI  rJ  rK  r=   set_event_loop_policyr=  r2   r2   r3   rB  {     
"rB  AbstractEventLoopPolicy | Noneasyncio.AbstractEventLoopc                 C  s^   t  ! t dt | d ur|  W  d    S t W  d    S 1 s(w   Y  d S rG  )r   rI  rJ  rK  get_event_loopr=   rO  r2   r2   r3   r@    s   
$r@  loopAbstractEventLoop | Nonec                 C  rM  rG  )r   rI  rJ  rK  r=   set_event_loop)rT  r2   r2   r3   rC    rP  rC  )r   r+  
pyfuncitemr   object | Nonec                 c  s    |  ddurLt| r@t| j}| jj D ]'\}}|d j}|tj	kr>t
|r>t|s>tjtd| jd|ddd qn| td	|  d
 dV  dS )z-Pytest hook called before a test case is run.r=   Nzasyncio test z! requested async @pytest.fixture z in strict mode. You might want to use @pytest_asyncio.fixture or switch to auto mode. This will become an error in future versions of pytest-asyncio.   )
stacklevelz	The test z is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.)r   is_async_testr   r{   r   name2fixturedefsitemsr   r4   r8   rz   rt   r   r   r   rX   rl   PytestWarning)rW  r>   fixnamefixturesr   r2   r2   r3   pytest_pyfunc_call  s8   



	
	rb  r   Callable[..., CoroutineType]asyncio.Runnerc                   s   t  fdd}|S )zh
    Return a sync wrapper around a coroutine executing it in the
    specified runner and context.
    c                    s    | i |}j | d d S )Nr   r   )r   rg   coror   r   r   r2   r3   rj     s   z%_synchronize_coroutine.<locals>.innerr   )r   r   r   rj   r2   rf  r3   r    s   
r  )wrapperc           
      c  s    t |j}t| js|tjkrd V S t| jsd V S |jd}t| jdd p,|p,| j	}d| d}|
|}t| ||}t|| t }|| d| d V }	W d    |	S 1 s]w   Y  |	S )NrJ   rv   r   r   r   )r   r{   rt   r   r4   r8   rz   r   rr   rS   r  r   rk   r   r   r  )
r   r   r>   r  rT   r   r   synchronizerr  r5  r2   r2   r3   pytest_fixture_setup  s0   







ri  zeAn asyncio pytest marker defines both "scope" and "loop_scope", but it should only use "loop_scope".
zvThe "scope" keyword argument to the asyncio marker has been deprecated. Please use the "loop_scope" argument instead.
asyncio_markerr   r  r  c                 C  s   | j dksJ | js| jrt| jddh rtdd| jv r0d| jv r)ttt	t
t | jdp;| jd}|d u rB|}|dv sHJ |S )Nr=   rT   rS   z:mark.asyncio accepts only a keyword argument 'loop_scope'.>   r(   r'   r&   r%   r)   )rX   r   rg   r   r   rl   r   &_DUPLICATE_LOOP_SCOPE_DEFINITION_ERRORr   r   r   '_MARKER_SCOPE_KWARG_DEPRECATION_WARNINGr   )rj  r  rS   r2   r2   r3   r	    s$   


r	  c                 C  s
   |  dS )NrL   )r   )r{   r2   r2   r3   r     s   
r   a  An exception occurred during teardown of an asyncio.Runner. The reason is likely that you closed the underlying event loop in a test, which prevents the cleanup of asynchronous generators by the runner.
This warning will become an error in future versions of pytest-asyncio. Please ensure that your tests don't close the event loop. Here is the traceback of the exception triggered during teardown:
%s
c                 C  s$   t j| d|  ddd
dd	}|S )Nr   r   )rS   rX   r   r   r;   Iterator[Runner]c                 s  s    | }t |j}t|z t|d }z|V  W n ty5 } z|t|||j W Y d }~nEd }~ww t	
 , t	ddt z	|d d d  W n ty^   t	tt  t Y nw W d    n1 siw   Y  W d    d S W d    d S W d    d S 1 sw   Y  d S )N)r   rH  z$.*BaseEventLoop.shutdown_asyncgens.*)r   r{   rF  r"   	__enter__	Exception__exit__rI   __traceback__r   rI  filterwarningsRuntimeWarningrA  r   _RUNNER_TEARDOWN_WARNING	traceback
format_exc)event_loop_policyr   new_loop_policy
debug_moder   r   r2   r2   r3   r     s<   


 

"z5_create_scoped_runner_fixture.<locals>._scoped_runner)r   r   r;   rm  )rl   rc   )rS   r   r2   r2   r3   _create_scoped_runner_fixture  s   
rz  r   r   r%   )rS   rV   c                   C  s   t  S )zDReturn an instance of the policy used to create asyncio event loops.)r?  r2   r2   r2   r3   rw  A  r   rw  r   r   TypeIs[PytestAsyncioFunction]c                 C  s
   t | tS )z4Returns whether a test item is a pytest-asyncio test)r   r   r   r2   r2   r3   r\  G     
r\  socket_typeintc                 C  sL   t tj| d}|d | d W  d   S 1 sw   Y  dS )z<Find an unused localhost port from 1024-65535 and return it.)rI   )z	127.0.0.1r   rZ  N)
contextlibclosingsocketbindgetsockname)r}  sockr2   r2   r3   _unused_portL  s   

$r  c                   C  
   t tjS ra   )r  r  SOCK_STREAMr2   r2   r2   r3   unused_tcp_portS  r|  r  c                   C  r  ra   )r  r  
SOCK_DGRAMr2   r2   r2   r3   unused_udp_portX  r|  r  )rS   Callable[[], int]c                       t    fdd} | S )z9A factory function, producing different unused TCP ports.c                    2   t tj} |  v rt tj} |  v s	 |  | S zReturn an unused port.)r  r  r  addportproducedr2   r3   factoryb     


z(unused_tcp_port_factory.<locals>.factoryr   r  r2   r  r3   unused_tcp_port_factory]     r  c                    r  )z9A factory function, producing different unused UDP ports.c                    r  r  )r  r  r  r  r  r  r2   r3   r  u  r  z(unused_udp_port_factory.<locals>.factoryr  r  r2   r  r3   unused_udp_port_factoryp  r  r  )r9   r   r:   r   r;   r<   )rY   rZ   rS   r[   rT   r\   rU   r]   rV   rG   rW   r^   rX   r_   r;   rZ   ).)rY   r<   rS   r[   rT   r\   rU   r]   rV   rG   rW   r^   rX   r_   r;   re   )NN)rY   rf   rT   r\   rg   r   r;   rh   )ro   r   r;   rG   )ro   r   rT   r\   r;   r<   )r{   r   r;   r4   )r{   r   r;   rG   )rS   r_   r   r   r;   r<   )r{   r   r;   r<   )r{   r   r;   r   )r   r   r   r"   r   r   r;   r   )rY   r   r   r"   r   r   r;   r   )rY   r   r   r"   r   r   r;   r   )r   r   r;   r   )r,  r-  rX   r   ro   r.  r;   r/  )r=  r   r;   r>  )r;   r   )r=  r   r;   r<   ra   )r=  rQ  r;   rR  )rT  rU  r;   r<   )rW  r   r;   rX  )r   rc  r   rd  r   r   )r   r   r;   rX  )rj  r   r  r  r;   r  )r{   r   r;   r   )rS   r  r;   r   )r   r   r;   r{  )r}  r~  r;   r~  )r;   r~  )r;   r  )sr1   
__future__r   r=   r  r   enumrm   rw   r  sysru  r   r   r   collections.abcr   r   r   r   r	   r
   r   typesr   r   typingr   r   r   r   r   pluggyrl   _pytest.fixturesr   _pytest.scoper   r   r   r   r   r   r   r   r   r   r   r   version_infor"   backports.asyncio.runnerr$   typing_extensionsr  r*   r,   FixtureFunctionro  r-   r   Enumr4   rO   rR   rc   rt   rk   rz   r   r   r   r   r   hookimplr   r   r   r   r   r   r   r   r   r   r  r  r#  r$  r<  contextmanagerrF  r?  rB  r@  rC  rb  r  ri  rk  rl  r	  r   rt  rz  rS   r~   globalsrw  r\  r  r  r  r  r  r2   r2   r2   r3   <module>   s    $	4


)










.

$ V	 &



,



!



