Ë
    èÞËj8•  ã            	      óz  — U 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 ddlmZmZ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 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/m0Z0m1Z1m2Z2m3Z3 e
jh                  dk\  rddlm5Z5 nddl6m5Z5 e
jh                  dk\  rddlm7Z7 nddl8m7Z7 erddlm9Z9 ed   Z: e!dee   ee   z  ¬«      Z; ed«      Z<ee<e;f   Z=eg ef   Z>de?d<    G d„ de@«      ZA G d„ deBej†                  «      ZD e#jŠ                  d«      ZF G d„ d«      ZGdZHdod„ZIe"ddddddd œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dpd!„«       ZJe"	 dqddddddd œ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 drd"„«       ZJ	 	 ds	 	 	 	 	 	 	 dtd#„ZJdud$„ZKdvd%„ZLdud&„ZMdwd'„ZNdxd(„ZOd)ZP	 	 	 	 	 	 dyd*„ZQd+ZRdzd,„ZSd{d-„ZT e$jª                  d.¬/«      d|d0„«       ZV	 	 	 	 	 	 	 	 d}d1„ZW ed2«      ZX e!d3«      ZY	 	 	 	 	 	 d~d4„ZZ ed5«      Z[ e!d6«      Z\	 	 	 	 	 	 dd7„Z] ed8«      Z^ e!d9«      Z_	 	 	 	 	 	 	 	 d€d:„Z` ed;«      Za e!d<«      Zb	 	 	 	 	 	 	 	 d�d=„Zc	 	 	 	 d‚d>„Zd G d?„ d@e,«      Ze G dA„ dBee«      Zf G dC„ dDee«      Zg G dE„ dFee«      Zh G dG„ dHee«      ZidƒdI„Zj e$jª                  dJd.¬K«      	 	 	 	 	 	 	 	 d„dL„«       Zk e$jª                  d.¬/«      d…dM„«       ZlejÚ                  d†dN„«       ZnejÚ                  	 	 	 	 d‡dO„«       ZodˆdP„Zpd‰dQ„Zq	 dŠ	 	 	 d‹dR„ZrdŒdS„Zs e$jª                  d.d.¬T«      d�dU„«       Zt	 	 	 	 	 	 dŽdV„Zu e$jª                  d.¬W«      d�dX„«       ZvdYZwdZZxd[Zyd\Zz	 	 	 	 d�d]„Z{d‘d^„Z|d’d_„Z}d`Z~d“da„Ze(D ],  Z€ ee€�j                  «       e‚«       dbe€�j                  › dc�<   Œ.  e$j”                  dd¬e«      d”df„«       Zƒ e$j”                  ddd.¬g«      dˆdh„«       Z„d•di„Z…d–dj„Z†e$j”                  d—dk„«       Z‡e$j”                  d—dl„«       Zˆ e$j”                  dd¬e«      d˜dm„«       Z‰ e$j”                  dd¬e«      d˜dn„«       ZŠy)™zpytest-asyncio implementation.é    )ÚannotationsN)ÚAbstractEventLoop)	ÚAsyncIteratorÚ	AwaitableÚCallableÚ
CollectionÚ	GeneratorÚIterableÚIteratorÚMappingÚSequence)ÚAsyncGeneratorTypeÚCoroutineType)ÚTYPE_CHECKINGÚAnyÚLiteralÚ	ParamSpecÚ	TypeAliasÚTypeVarÚoverload)Úresolve_fixture_function)ÚScope)ÚConfigÚ
FixtureDefÚFixtureRequestÚFunctionÚItemÚMarkÚMonkeyPatchÚParserÚPytestCollectionWarningÚPytestDeprecationWarningÚPytestPluginManager)é   é   )ÚRunner)r$   é   )ÚTypeIs)ÚAbstractEventLoopPolicy)ÚsessionÚpackageÚmoduleÚclassÚfunctionÚ_R)ÚboundÚ_Pr   ÚLoopFactoryc                  ó   — e Zd ZdZy)ÚPytestAsyncioErrorz2Base class for exceptions raised by pytest-asyncioN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úR/var/www/photos/backend/venv/lib/python3.12/site-packages/pytest_asyncio/plugin.pyr4   r4   N   s   „ Ú<r:   r4   c                  ó   — e Zd ZdZdZy)ÚModeÚautoÚstrictN)r5   r6   r7   ÚAUTOÚSTRICTr9   r:   r;   r=   r=   R   s   „ Ø€DØ�Fr:   r=   Úpytestc                  ó8   — e Zd Z ed¬«      	 	 	 	 	 	 dd„«       Zy)ÚPytestAsyncioSpecsT)Úfirstresultc                ó   — t         ‚©N©ÚNotImplementedError)ÚselfÚconfigÚitems      r;   Úpytest_asyncio_loop_factoriesz0PytestAsyncioSpecs.pytest_asyncio_loop_factories[   s
   € ô "Ð!r:   N)rK   r   rL   r   Úreturnz Mapping[str, LoopFactory] | None)r5   r6   r7   ÚhookspecrM   r9   r:   r;   rD   rD   Z   s5   „ Ù˜$Ôð"àð"ð ð"ð 
*ò	"ó  ñ"r:   rD   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)
c                óV  — |j                  t        «       | j                  d«      }|j                  ddd dt        ¬«       |j                  dddd d	¬
«       | j                  ddd¬«       | j                  dd	dd¬«       | j                  dddd ¬«       | j                  dddd¬«       y )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)rT   ÚactionrU   rW   z default value for --asyncio-moder?   )rW   rU   ÚboolÚfalse)rW   ÚtyperU   Ú"asyncio_default_fixture_loop_scopeÚstringzFdefault scope of the asyncio event loop used to execute async fixtures)r]   rW   rU   Úasyncio_default_test_loop_scopez=default scope of the asyncio event loop used to execute testsr.   )Úadd_hookspecsrD   ÚgetgroupÚ	addoptionÚASYNCIO_MODE_HELPÚaddini)ÚparserÚpluginmanagerÚgroups      r;   Úpytest_addoptionri   l   sÚ   € Ø×ÑÔ 2Ô3Ø�O‰O˜IÓ&€EØ	‡O�OØØØØÜð ô ð 
‡O�OØØØØØCð ô ð ‡M�MØØ/Øð ô ð
 ‡M�MØØCØØð	 ô ð ‡M�MØ,ØØUØð	 ô ð ‡M�MØ)ØØLØð	 õ r:   .)ÚscopeÚ
loop_scopeÚparamsÚautouseÚidsÚnamec                ó   — y rG   r9   ©Úfixture_functionrj   rk   rl   rm   rn   ro   s          r;   Úfixturers   –   s   € ð "r:   c                ó   — y rG   r9   rq   s          r;   rs   rs   §   s	   € ð DGr:   c                ó˜   ‡‡— | �"t        | ‰«       t        j                  | fi ‰¤ŽS t        j                  t        «      dˆˆfd„«       }|S )Nc                ó    •— t        | fd‰i‰¤ŽS )Nrk   )rs   )rr   Úkwargsrk   s    €€r;   Úinnerzfixture.<locals>.innerÆ   s   ø€ äÐ+ÑM¸
ÐMÀfÑMÐMr:   )rr   úFixtureFunction[_P, _R]rN   ry   )Ú_make_asyncio_fixture_functionrB   rs   Ú	functoolsÚwraps)rr   rk   rw   rx   s    `` r;   rs   rs   ¸   sQ   ù€ ð Ð#Ü&Ð'7¸ÔDÜ�~‰~Ð.Ñ9°&Ñ9Ð9ô 
�‰œÓ	!õ	Nó 
"ð	Nð ˆr:   c                ó6   — t        | d| «      } t        | dd«      S )NÚ__func__Ú_force_asyncio_fixtureF©Úgetattr©Úobjs    r;   Ú_is_asyncio_fixture_functionr„   Í   s    € Ü
�#�z 3Ó
'€CÜ�3Ð0°%Ó8Ð8r:   c                óP   — t        | d«      r| j                  } d| _        || _        y )Nr~   T)Úhasattrr~   r   Ú_loop_scope)rƒ   rk   s     r;   rz   rz   Ò   s$   € Üˆs�JÔà�l‰lˆØ!%€CÔØ €C…Or:   c                óZ   — t        j                  | «      xs t        j                  | «      S rG   )ÚinspectÚiscoroutinefunctionÚisasyncgenfunctionr‚   s    r;   Ú_is_coroutine_or_asyncgenrŒ   Ú   s#   € Ü×&Ñ& sÓ+ÒN¬w×/IÑ/IÈ#Ó/NÐNr:   c                óô   — | j                  d«      }|€| j                  d«      }	 t        |«      S # t        $ r=}dj	                  d„ t        D «       «      }t        j                  |›d|› d�«      |‚d }~ww xY w)NrR   ú, c              3  ó4   K  — | ]  }|j                   –— Œ y ­wrG   )Úvalue)Ú.0Úms     r;   ú	<genexpr>z$_get_asyncio_mode.<locals>.<genexpr>å   s   è ø€ Ò0 a˜!Ÿ'�'Ñ0ùs   ‚z+ is not a valid asyncio_mode. Valid modes: ú.)Ú	getoptionÚgetinir=   Ú
ValueErrorÚjoinrB   Ú
UsageError)rK   ÚvalÚeÚmodess       r;   Ú_get_asyncio_moder�   Þ   s   € Ø
×
Ñ
˜>Ó
*€CØ
€{Ø�m‰m˜NÓ+ˆðÜ�C‹yÐøÜò Ø—	‘	Ñ0¬4Ô0Ó0ˆÜ×ÑØˆgÐ@ÀÀÀqÐIó
àð	ûðús   ¦
1 ±	A7º8A2Á2A7c                óx   — | j                  d«      }|€| j                  d«      }t        |t        «      r|S |dk(  S )NrX   Útrue)r•   r–   Ú
isinstancer[   )rK   rš   s     r;   Ú_get_asyncio_debugr¡   ë   s>   € Ø
×
Ñ
˜?Ó
+€CØ
€{Ø�m‰m˜OÓ,ˆä�#”tÔØˆ
à�f‰}Ðr:   z]pytest_asyncio_loop_factories must return a non-empty mapping of factory names to callables.
c                óJ  — |j                   j                  }|j                  «       sy  || |¬«      }|�t        |t        «      st        j                  t        «      ‚t        |«      }|r t        d„ |j                  «       D «       «      rt        j                  t        «      ‚|S )N)rK   rL   c              3  ój   K  — | ]+  \  }}t        |t        «       xs | xs t        |«       –— Œ- y ­wrG   )r    ÚstrÚcallable)r‘   ro   Úfactorys      r;   r“   z/_collect_hook_loop_factories.<locals>.<genexpr>
  s=   è ø€ ò áˆD�'ô �tœSÓ!Ð!ÒF¨ XÒF´X¸gÓ5FÐ1FÓFñùs   ‚13)ÚihookrM   Úget_hookimplsr    r   rB   r™   Ú_INVALID_LOOP_FACTORIESÚdictÚanyÚitems)rK   rL   Úhook_callerÚresultÚ	factoriess        r;   Ú_collect_hook_loop_factoriesr°   ü   s‘   € ð —*‘*×:Ñ:€KØ×$Ñ$Ô&Øá ¨TÔ2€FØ€~œZ¨´Ô8Ü×ÑÔ 7Ó8Ð8ô �V“€IÙœñ à&Ÿ_™_Ó.ôô ô ×ÑÔ 7Ó8Ð8ØÐ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"
c           	     ó°   — | €y t         D �cg c]  }|j                  ‘Œ }}| |vr-t        j                  | ›d|› ddj	                  |«      › d�«      ‚y c c}w )Nz is not a valid z. Valid scopes are: rŽ   r”   )r   r�   rB   r™   r˜   )rj   Úoption_nameÚsÚvalid_scopess       r;   Ú_validate_scoperµ     sm   € Ø€}ØÜ%*Ö+ �A—G“GÐ+€LÐ+Ø�LÑ Ü×ÑØˆiÐ'¨ }ð 5!Ø!%§¡¨<Ó!8Ð 9¸ð<ó
ð 	
ð !ùò ,s   ŒAc                óä   — | j                  d«      }t        |d«       |s"t        j                  t	        t
        «      «       | j                  d«      }t        |d«       | j                  dd«       y )Nr^   r`   Ú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)rK   Údefault_fixture_loop_scopeÚdefault_test_loop_scopes      r;   Úpytest_configurer¾   '  sf   € Ø!'§¡Ð/SÓ!TÐÜÐ.Ð0TÔUÙ%Ü�‰Ô.Ô/PÓQÔRà$Ÿm™mÐ,MÓNÐÜÐ+Ð-NÔOØ
×ÑØð	*õr:   T)Útryfirstc                ó´   — t        | «      }t        | «      }| j                  d«      }t        | «      }d|› �d|› �d|› �d|› �g}ddj	                  |«      z   gS )z$Add asyncio config to pytest header.r^   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˜   )rK   ÚmodeÚdebugr¼   r½   Úheaders         r;   Úpytest_report_headerrÅ   7  s‚   € ô ˜VÓ$€DÜ˜vÓ&€EØ!'§¡Ð/SÓ!TÐÜ:¸6ÓBÐà
�ˆvˆØ
��ÐØ
-Ð.HÐ-IÐJØ
*Ð+BÐ*CÐDð	€Fð 	�d—i‘i Ó'Ñ'ðð r:   c                ó8  — t        | |«      }t        j                  | j                  «      rt	        |||«      S t        j
                  | j                  «      rt        |||«      S t        j                  | j                  «      rt        ||«      S t        ||«      S )z@Returns a synchronous function evaluating the specified fixture.)
r   r‰   r‹   ÚfuncÚ_wrap_asyncgen_fixturerŠ   Ú_wrap_async_fixtureÚisgeneratorfunctionÚ_wrap_syncgen_fixtureÚ_wrap_sync_fixture)Ú
fixturedefÚrunnerÚrequestrr   s       r;   Ú_fixture_synchronizerrÐ   I  sƒ   € ô 0°
¸GÓDÐÜ×!Ñ! *§/¡/Ô2Ü%Ð&6¸ÀÓHÐHÜ	×	$Ñ	$ Z§_¡_Ô	5Ü"Ð#3°V¸WÓEÐEÜ	×	$Ñ	$ Z§_¡_Ô	5Ü$Ð%5°vÓ>Ð>ä!Ð"2°FÓ;Ð;r:   ÚSyncGenFixtureParamsÚSyncGenFixtureYieldTypec                óT   ‡ ‡— t        j                  ‰ «      	 	 	 	 	 	 dˆ ˆfd„«       }|S )Nc               ?  óŽ   •K  — t        ‰j                  «       «      5   ‰| i |¤ŽE d {  –—†  d d d «       y 7 Œ# 1 sw Y   y xY w­wrG   ©Ú_temporary_event_loopÚget_loop©Úargsrw   rr   rÎ   s     €€r;   Ú_syncgen_fixture_wrapperz7_wrap_syncgen_fixture.<locals>._syncgen_fixture_wrapperb  sH   øè ø€ ô
 # 6§?¡?Ó#4Ó5ñ 	9Ù'¨Ð8°Ñ8×8Ð8÷	9ð 	9Ø8ø÷	9ð 	9üs$   ƒA�9©7ª9®	A·9¹A¾A)rÙ   zSyncGenFixtureParams.argsrw   zSyncGenFixtureParams.kwargsrN   z"Generator[SyncGenFixtureYieldType]©r{   r|   )rr   rÎ   rÚ   s   `` r;   rË   rË   \  sC   ù€ ô ‡_�_Ð%Ó&ð9Ø(ð9à-ð9ð 
,õ9ó 'ð9ð $Ð#r:   ÚSyncFixtureParamsÚSyncFixtureReturnTypec                óT   ‡ ‡— t        j                  ‰ «      	 	 	 	 	 	 dˆ ˆfd„«       }|S )Nc                 ór   •— t        ‰j                  «       «      5   ‰| i |¤Žcd d d «       S # 1 sw Y   y xY wrG   rÕ   rØ   s     €€r;   Ú_sync_fixture_wrapperz1_wrap_sync_fixture.<locals>._sync_fixture_wrapperu  s6   ø€ ô
 # 6§?¡?Ó#4Ó5ñ 	5Ù# TÐ4¨VÑ4÷	5÷ 	5ò 	5ús   ›-­6)rÙ   zSyncFixtureParams.argsrw   zSyncFixtureParams.kwargsrN   rÝ   rÛ   )rr   rÎ   rà   s   `` r;   rÌ   rÌ   q  sC   ù€ ô ‡_�_Ð%Ó&ð5Ø%ð5à*ð5ð 
õ5ó 'ð5ð !Ð r:   ÚAsyncGenFixtureParamsÚAsyncGenFixtureYieldTypec                óT   ‡ ‡‡— t        j                  ‰ «      	 	 	 	 dˆ ˆˆfd„«       }|S )Nc                 óÊ   •‡‡‡—  ‰| i |¤ŽŠˆfd„}t        j                  «       Š‰
j                   |«       ‰¬«      }t        ‰«      Šdˆˆˆˆ
fd„}‰	j	                  |«       |S )Nc               “  óD   •K  — ‰j                  «       ƒ d {  –—† } | S 7 Œ­wrG   )Ú	__anext__)ÚresÚgen_objs    €r;   ÚsetupzH_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup’  s"   øè ø€ Ø×)Ñ)Ó+×+ˆCØˆJð ,ús   ƒ —˜ ©Úcontextc                 óV   •— dˆfd„} ‰j                   | «       ‰¬«       ‰� ‰«        yy)zYield again, to finalize.c               “  ó„   •K  — 	 ‰j                  «       ƒ d {  –—†  d} | dz  } t        | «      ‚7 Œ# t        $ r Y y w xY w­w)Nz$Async generator fixture didn't stop.zYield only once.)ræ   r—   ÚStopAsyncIteration)Úmsgrè   s    €r;   Úasync_finalizerze_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer.<locals>.async_finalizerž  sQ   øè ø€ ð*Ø!×+Ñ+Ó-×-Ð-ð A�CØÐ-Ñ-�CÜ$ S›/Ð)ð .ùÜ)ò Ùðüs,   ƒA …1 ˜/™1 �A ¯1 ±	=ºA ¼=½A rê   N©rN   ÚNone©Úrun)rð   rë   rè   Úreset_contextvarsrÎ   s    €€€€r;   Ú	finalizerzL_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer›  s.   ø€ õ*ð �J‰J‘Ó(°'ˆJÔ:Ø Ð,Ù!Õ#ð -r:   rñ   ©ÚcontextvarsÚcopy_contextrô   Ú_apply_contextvar_changesÚaddfinalizer)rÙ   rw   ré   r®   rö   rë   rè   rõ   rr   rÏ   rÎ   s        @@@€€€r;   Ú_asyncgen_fixture_wrapperz9_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper‹  sg   û€ ñ
 # DÐ3¨FÑ3ˆô	ô ×*Ñ*Ó,ˆØ—‘™E›G¨W�Ó5ˆä5°gÓ>Ð÷	$ð 	$ð" 	×Ñ˜YÔ'Øˆr:   )rÙ   zAsyncGenFixtureParams.argsrw   zAsyncGenFixtureParams.kwargsrÛ   )rr   rÎ   rÏ   rü   s   ``` r;   rÈ   rÈ   „  s:   ú€ ô ‡_�_Ð%Ó&ð!Ø)ð!à.ö!ó 'ð!ðF %Ð$r:   ÚAsyncFixtureParamsÚAsyncFixtureReturnTypec                óT   ‡ ‡‡— t        j                  ‰ «      	 	 	 	 dˆ ˆˆfd„«       }|S )Nc                 ó®   •‡ ‡— ˆ ˆˆfd„}t        j                  «       }‰j                   |«       |¬«      }t        |«      }|�‰j	                  |«       |S )Nc               “  ó4   •K  —  ‰‰i ‰¤Žƒ d {  –—† } | S 7 Œ­wrG   r9   )rç   rÙ   rr   rw   s    €€€r;   ré   zB_wrap_async_fixture.<locals>._async_fixture_wrapper.<locals>.setupÂ  s#   øè ø€ Ù(¨$Ð9°&Ñ9×9ˆCØˆJð :ús   ƒ��rê   r÷   )	rÙ   rw   ré   rë   r®   rõ   rr   rÏ   rÎ   s	   ``    €€€r;   Ú_async_fixture_wrapperz3_wrap_async_fixture.<locals>._async_fixture_wrapper½  sS   ú€ ö
	ô ×*Ñ*Ó,ˆØ—‘™E›G¨W�Ó5ˆô 6°gÓ>ÐØÐ(Ø× Ñ Ð!2Ô3àˆr:   )rÙ   zAsyncFixtureParams.argsrw   zAsyncFixtureParams.kwargsrÛ   )rr   rÎ   rÏ   r  s   ``` r;   rÉ   rÉ   ¶  s9   ú€ ô ‡_�_Ð%Ó&ðØ&ðà+öó 'ðð2 "Ð!r:   c                óö   ‡— g Š| D ]Y  }	 |j                  «       | j                  |«      u rŒ&	 |j                  | j                  |«      «      }‰j                  ||f«       Œ[ ‰syˆfd„}|S # t        $ r Y ŒJw xY w)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                 óZ   •— ‰r(‰j                  «       \  } }| j                  |«       ‰rŒ'y y rG   )ÚpopÚreset)ÚvarÚtokenÚcontext_tokenss     €r;   Úrestore_contextvarsz6_apply_contextvar_changes.<locals>.restore_contextvarsò  s)   ø€ ÙØ'×+Ñ+Ó-‰JˆC�Ø�I‰I�eÔô r:   )ÚgetÚLookupErrorÚsetÚappend)rë   r  r  r
  r	  s       @r;   rú   rú   Ú  s‘   ø€ ð €NØò 	,ˆð	Ø�w‰w‹y˜GŸK™K¨Ó,Ñ,àð -ð —‘˜Ÿ™ CÓ(Ó)ˆØ×Ñ˜s E˜lÕ+ð	,ñ Øôð
 Ðøô ò 	áð	ús   Š!A,Á,	A8Á7A8c                  óž   ‡ — e Zd ZdZed	d„«       Zed
d„«       Zedd„«       Zdˆ fd„Z	dˆ fd„Z
ej                  dd„«       Zedd„«       Zˆ xZS )ÚPytestAsyncioFunctionz<Base class for all test functions managed by pytest-asyncio.c               óX   — | j                  «       D ]  }|j                  |«      sŒ|c S  y)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)ÚclsrL   Úsubclasss      r;   Úitem_subclass_forz'PytestAsyncioFunction.item_subclass_forý  s4   € ð ×*Ñ*Ó,ò 	 ˆHØ×'Ñ'¨Õ-Ø’ð	 ð r:   c          	     ó^  — |j                  d«      sJ ‚|j                  €J ‚| j                  |j                  |j                  t	        |dd«      |j
                  |j                  |j                  |j                  ¬«      }|j                  |_	        |j                  |j                  k(  sJ ‚|S )zq
        Instantiates this specific PytestAsyncioFunction type from the specified
        Function item.
        rQ   NÚcallspec)ro   r  ÚcallobjÚfixtureinfoÚkeywordsÚoriginalname)
Úget_closest_markerÚparentÚfrom_parentro   r�   rƒ   Ú_fixtureinfor  r  Úown_markers)r  r.   Úsubclass_instances      r;   Ú_from_functionz$PytestAsyncioFunction._from_function
  s©   € ð ×*Ñ*¨9Ô5Ð5Ð5Ø�‰Ð*Ð*Ð*ØŸO™OØ�O‰OØ—‘Ü˜X z°4Ó8Ø—L‘LØ ×-Ñ-Ø×&Ñ&Ø!×.Ñ.ð ,ó 
Ðð )1×(<Ñ(<ÐÔ%Ø ×,Ñ,°×0DÑ0DÒDÐDÐDØ Ð r:   c                ó   — t        «       ‚)zDReturns whether the specified function can be replaced by this classrH   ©rL   s    r;   r  z%PytestAsyncioFunction._can_substitute  s   € ô "Ó#Ð#r:   c                óD  •— d| j                   › d�}|| j                  vr| j                  j                  |«       | j                  j                  j
                  }|j                  «       r)| j                  j                  t        j                  «      }t        ‰| �1  «       S ©NÚ_Ú_scoped_runner)r‡   Úfixturenamesr  rK   ÚhookrM   r¨   Ú_requestÚgetfixturevalueÚ_asyncio_loop_factoryr5   Úsuperré   )rJ   Úrunner_fixture_idr­   r(  Ú	__class__s       €r;   ré   zPytestAsyncioFunction.setup$  s†   ø€ Ø × 0Ñ 0Ð1°Ð@ÐØ D×$5Ñ$5Ñ5Ø×Ñ×$Ñ$Ð%6Ô7ð —k‘k×&Ñ&×DÑDˆØ×$Ñ$Ô&Ø—‘×-Ñ-Ô.C×.LÑ.LÓMˆAÜ‰w‰}‹Ðr:   c                óh  •— d| j                   › d�}| j                  j                  |«      }t        j                  «       }t        t        | j                  Ž ||«      }t        j                  «       5 } |j                  g | j                  ¢|‘­Ž  t        ‰| �1  «        d d d «       y # 1 sw Y   y xY wr'  )r‡   r,  r-  rø   rù   Ú_synchronize_coroutiner�   Ú_synchronization_target_attrr   rë   Úsetattrr/  Úruntest)rJ   r0  rÎ   rë   Úsynchronized_objÚcr1  s         €r;   r6  zPytestAsyncioFunction.runtest0  s¥   ø€ Ø × 0Ñ 0Ð1°Ð@ÐØ—‘×.Ñ.Ð/@ÓAˆÜ×*Ñ*Ó,ˆÜ1Ü�T×6Ñ6Ð7¸Àó
Ðô × Ñ Ó"ð 	 aØˆA�I‰IÐK�t×8Ñ8ÐKÐ:JÓKÜ‰G‰OÔ÷	÷ 	ñ 	ús   Á2-B(Â(B1c                óÒ   — | j                  d«      }|€J ‚t        | j                  «      }|j                  j	                  d«      xs |j                  j	                  d«      }|€|S |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.
        rQ   rk   rj   )r  rÁ   rK   rw   r  )rJ   ÚmarkerÚdefault_loop_scoperk   s       r;   r‡   z!PytestAsyncioFunction._loop_scope;  si   € ð ×(Ñ(¨Ó3ˆØÐ!Ð!Ð!Ü9¸$¿+¹+ÓFÐØ—]‘]×&Ñ& |Ó4ÒR¸¿¹×8IÑ8IÈ'Ó8Rˆ
ØÐØ%Ð%àÐr:   c                ó
   — | dfS )a.  
        Return the coroutine that needs to be synchronized during the test run.

        This method is intended 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.
        rƒ   r9   ©rJ   s    r;   r4  z2PytestAsyncioFunction._synchronization_target_attrN  s   € ð �Uˆ{Ðr:   )rL   r   rN   z"type[PytestAsyncioFunction] | None©r.   r   rN   r   ©rL   r   rN   r[   rñ   )rN   Ú
_ScopeName©rN   ztuple[object, str])r5   r6   r7   r8   Úclassmethodr  r#  Ústaticmethodr  ré   r6  r{   Úcached_propertyr‡   Úpropertyr4  Ú__classcell__©r1  s   @r;   r  r  ú  sx   ø„ ÙFàò
ó ð
ð ò!ó ð!ð( ò$ó ð$õ
õ	ð ×Ñòó ðð$ òó ôr:   r  c                  ó"   — e Zd ZdZedd„«       Zy)Ú	Coroutinez"Pytest item created by a coroutinec                óD   — | j                   }t        j                  |«      S rG   )rƒ   r‰   rŠ   ©rL   rÇ   s     r;   r  zCoroutine._can_substitute]  s   € à�x‰xˆÜ×*Ñ*¨4Ó0Ð0r:   Nr?  ©r5   r6   r7   r8   rC  r  r9   r:   r;   rI  rI  Z  s   „ Ù,àò1ó ñ1r:   rI  c                  ó@   ‡ — e Zd ZdZedd„«       Zedˆ fd„«       Zˆ xZS )ÚAsyncGeneratorz0Pytest item created by an asynchronous generatorc                óD   — | j                   }t        j                  |«      S rG   )rƒ   r‰   r‹   rK  s     r;   r  zAsyncGenerator._can_substitutef  s   € à�x‰xˆÜ×)Ñ)¨$Ó/Ð/r:   c               óÚ   •— t         ‰| �  |«      }d|j                  › d�}|j                  t	        |«      «       |j                  t        j                  j                  d|¬«      «       |S )Nz:Tests based on asynchronous generators are not supported. z will be ignored.F)rô   Úreason)	r/  r#  ro   r¹   r!   Ú
add_markerrB   ÚmarkÚxfail)r  r.   Úasync_gen_itemÚunsupported_item_type_messager1  s       €r;   r#  zAsyncGenerator._from_functionk  sp   ø€ ä™Ñ/°Ó9ˆàHØ�}‰}ˆoÐ.ð0ð 	&ð 	×ÑÔ3Ð4QÓRÔSØ×!Ñ!Ü�K‰K×Ñ %Ð0MÐÓNô	
ð Ðr:   r?  r>  )	r5   r6   r7   r8   rC  r  rB  r#  rF  rG  s   @r;   rN  rN  c  s,   ø„ Ù:àò0ó ð0ð ô
ó ô
r:   rN  c                  ó"   — e Zd ZdZedd„«       Zy)ÚAsyncStaticMethodzf
    Pytest item that is a coroutine or an asynchronous generator
    decorated with staticmethod
    c                óh   — | j                   }t        |t        «      xr t        |j                  «      S rG   )rƒ   r    rC  rŒ   r~   rK  s     r;   r  z!AsyncStaticMethod._can_substitute  s.   € à�x‰xˆÜ˜$¤Ó-ò 
Ô2KØ�M‰Mó3
ð 	
r:   Nr?  rL  r9   r:   r;   rX  rX  y  s   „ ñð
 ò
ó ñ
r:   rX  c                  óH   ‡ — e Zd ZdZdˆ fd„Zedd„«       Zedd„«       Zˆ xZ	S )ÚAsyncHypothesisTestzh
    Pytest item that is coroutine or an asynchronous generator decorated by
    @hypothesis.given.
    c                ó®   •— t        | j                  dd«      s0t        | j                  dd«      rt        j                  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.)r�   rƒ   rB   Úfailr/  ré   )rJ   r1  s    €r;   ré   zAsyncHypothesisTest.setup�  sS   ø€ Ü�t—x‘x ¨uÔ5¼'Ø�H‰HÐ*¨Eô;
ô �K‰KØ! $ ð *>ð >ôô ‰w‰}‹Ðr:   c                ó¨   — | j                   }t        |dd«      xr8 t        |dd «      xr) t        j                  |j                  j
                  «      S )Nr^  Fr]  )rƒ   r�   r‰   rŠ   r]  Ú
inner_testrK  s     r;   r  z#AsyncHypothesisTest._can_substitute—  sM   € à�x‰xˆä�DÐ.°Ó6ò HÜ˜˜l¨DÓ1òHä×+Ñ+¨D¯O©O×,FÑ,FÓGð	
r:   c                ó2   — | j                   j                  dfS )Nra  )rƒ   r]  r=  s    r;   r4  z0AsyncHypothesisTest._synchronization_target_attr   s   € à�x‰x×"Ñ" LÐ0Ð0r:   rñ   r?  rA  )
r5   r6   r7   r8   ré   rC  r  rE  r4  rF  rG  s   @r;   r[  r[  ‡  s5   ø„ ñõ
ð ò
ó ð
ð ò1ó ô1r:   r[  c                ó¾   — | j                  d«      }|�|S t        | j                  «      t        j                  k(  r"| j                  d«       | j                  d«      S y )NrQ   )r  r�   rK   r=   r@   rR  )rL   r:  s     r;   Ú_resolve_asyncio_markerrd  ¥  sR   € Ø×$Ñ$ YÓ/€FØÐØˆÜ˜Ÿ™Ó%¬¯©Ò2Ø�‰˜	Ô"Ø×&Ñ& yÓ1Ð1Ør:   Úpytest_pycollect_makeitem)ÚspecnameÚhookwrapperc              #  óº  K  — d–—}	 |j                  «       }|syt        |t        «      rt        |«      }nt        |f«      }g }|D ]X  }|}	t        |t        «      r3t        j                  |«      }
|
�t        |«      �|
j                  |«      }	|j                  |	«       ŒZ |j                  |«       y# t        $ r}|j                  |«       Y d}~yd}~ww xY w­w)zl
    Converts coroutines and async generators collected as pytest.Functions
    to AsyncFunction items.
    N)Ú
get_resultÚBaseExceptionÚforce_exceptionr    r   Úiterr   r  r  rd  r#  r  Úforce_result)Ú	collectorro   rƒ   Úhook_resultÚnode_or_list_of_nodesr›   Únode_iteratorÚupdated_node_collectionÚnodeÚupdated_itemÚspecialized_item_classs              r;   Ú=pytest_pycollect_makeitem_convert_async_functions_to_subclassrv  ±  sê   è ø€ ò €Kðð ×"Ñ"Ó$ð 	ñ !ØÜÐ'¬Ô2ÜÐ2Ó3‰ô Ð3Ð5Ó6ˆØ ÐØò 	5ˆØˆÜ�dœHÔ%Ü%:×%LÑ%LÈTÓ%RÐ"à&Ð2Ü+¨DÓ1Ð=à5×DÑDÀTÓJ�Ø×&Ñ& |Õ4ð	5ð ×ÑÐ4Õ5øô+ ò Ø×#Ñ# AÔ&Üûðüs.   ‚CˆB4 ˜BCÂ4	CÂ=CÃCÃCÃCc                óT  — t         j                  | j                  «      }|€y t        | j                  «      }|€y t	        |«      \  }}t        | j                  | j                  «      }|€|�t        j                  d«      ‚y |€!|j                  «       }|j                  «       }nc|}|D �cg c]V  }||v r||   nJt        j                  d t        j                  j                  d|›ddj                  |«      › d�¬«      ¬«      ‘ŒX }}| j                  j!                  t"        j$                  «       t'        | j                  «      }	|xs |	}
t)        |«      dk(  xr t+        t        d	«      }| j-                  t"        j$                  ||rt        j.                  fn|d
|
¬«       y c c}w )Nzfmark.asyncio 'loop_factories' requires at least one pytest_asyncio_loop_factories hook implementation.zLoop factory z( is not available. Available factories: rŽ   r”   )rQ  )Úmarksé   ÚHIDDEN_PARAMT)rn   Úindirectrj   )r  r  Ú
definitionrd  Ú_parse_asyncio_markerr°   rK   rB   r™   ÚvaluesÚkeysÚparamrS  Úskipr˜   r*  r  r.  r5   rÁ   Úlenr†   Úparametrizerz  )Úmetafuncru  Úasyncio_markerÚmarker_loop_scopeÚmarker_selected_factory_namesÚhook_factoriesÚfactory_paramsÚfactory_idsro   r;  rk   Úhide_ids               r;   Úpytest_generate_testsrŒ  Ö  sÊ  € ä2×DÑDØ×ÑóÐð Ð%Øä,¨X×-@Ñ-@ÓA€NØÐØÜ7LØó8Ñ4ÐÐ4ô 2°(·/±/À8×CVÑCVÓW€NØÐØ(Ð4Ü×#Ñ#ðEóð ð 	ð %Ð,Ø'×.Ñ.Ó0ˆØ$×)Ñ)Ó+‰ð 4ˆð  6ö
ð ð ˜>Ñ)ð ˜tÒ$ä—\‘\ØÜ Ÿ+™+×*Ñ*à+¨D¨8ð 4 à $§	¡	¨.Ó 9Ð:¸!ð=ð +ó ô	ñð
ˆð 
ð" ×Ñ× Ñ Ô!6×!?Ñ!?Ô@Ü5°h·o±oÓFÐØ"Ò8Ð&8€Jä�+Ó !Ñ#ÒG¬´¸Ó(G€GØ×ÑÜ×&Ñ&ØÙ&-ŒV× Ñ Ñ"°;ØØð õ ùò-
s   Â,AF%c              #  ó¬   K  — 	 t        «       }|| u rd –— y t        | «       	 d –— t        |«       y # t        $ r d }Y Œ2w xY w# t        |«       w xY w­wrG   )Ú_get_event_loop_no_warnÚRuntimeErrorÚ_set_event_loop)ÚloopÚold_loops     r;   rÖ   rÖ     s[   è ø€ ðÜ*Ó,ˆð �4ÑÛØÜ�DÔð"Ûä˜Õ!øô ò ØŠðûô 	˜Õ!üs:   ‚A„
3 ŽA£A §A³A¾AÁ AÁAÁAÁAc              #  óv   K  — t        «       }t        | «       	 d –— t        |«       y # t        |«       w xY w­wrG   )Ú_get_event_loop_policyÚ_set_event_loop_policy)ÚpolicyÚold_loop_policys     r;   Ú_temporary_event_loop_policyr˜  &  s1   è ø€ ô -Ó.€OÜ˜6Ô"ð0Ûä˜Õ/øÔ˜Õ/üs   ‚9™) �9©6¶9c                 ó²   — t        j                  «       5  t        j                  dt        «       t	        j
                  «       cd d d «       S # 1 sw Y   y xY w©NÚignore)r¸   Úcatch_warningsÚsimplefilterÚDeprecationWarningrQ   Úget_event_loop_policyr9   r:   r;   r”  r”  2  s@   € Ü	×	 Ñ	 Ó	"ñ /Ü×Ñ˜hÔ(:Ô;Ü×,Ñ,Ó.÷/÷ /ò /ús   •.AÁAc                ó´   — t        j                  «       5  t        j                  dt        «       t	        j
                  | «       d d d «       y # 1 sw Y   y xY wrš  )r¸   rœ  r�  rž  rQ   Úset_event_loop_policy©r–  s    r;   r•  r•  8  sB   € Ü	×	 Ñ	 Ó	"ñ .Ü×Ñ˜hÔ(:Ô;Ü×%Ñ% fÔ-÷.÷ .ñ .úó   •0AÁAc                óè   — t        j                  «       5  t        j                  dt        «       | �| j	                  «       cd d d «       S t        j                  «       cd d d «       S # 1 sw Y   y xY wrš  )r¸   rœ  r�  rž  Úget_event_looprQ   r¢  s    r;   rŽ  rŽ  >  s`   € ô 
×	 Ñ	 Ó	"ñ ,Ü×Ñ˜hÔ(:Ô;ØÐØ×(Ñ(Ó*÷,ñ ,ô
 ×)Ñ)Ó+÷,÷ ,ò ,ús   •,A(ÁA(Á(A1c                ó´   — t        j                  «       5  t        j                  dt        «       t	        j
                  | «       d d d «       y # 1 sw Y   y xY wrš  )r¸   rœ  r�  rž  rQ   Úset_event_loop)r‘  s    r;   r�  r�  I  sB   € Ü	×	 Ñ	 Ó	"ñ %Ü×Ñ˜hÔ(:Ô;Ü×Ñ˜tÔ$÷%÷ %ñ %úr£  )r¿   rg  c           
   #  óø  K  — | j                  d«      �át        | «      r®t        | j                  «      }| j                  j
                  j                  «       D ]q  \  }}|d   j                  }|t        j                  k(  sŒ)t        |«      sŒ5t        |«      rŒAt        j                  t        d| j                  ›d|›d�«      d¬«       Œs n(| j                  t!        j"                  d	| › d
�«      «       d–— y­w)z-Pytest hook called before a test case is run.rQ   Néÿÿÿÿz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.ry  )Ú
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�   rK   r   Úname2fixturedefsr¬   rÇ   r=   rA   rŒ   r„   r¸   r¹   r"   ro   rB   ÚPytestWarning)Ú
pyfuncitemrR   ÚfixnameÚfixturesrÇ   s        r;   Úpytest_pyfunc_callr±  O  s÷   è ø€ ð ×$Ñ$ YÓ/Ð;Ü˜Ô$Ü,¨Z×->Ñ->Ó?ˆLØ%/×%<Ñ%<×%MÑ%M×%SÑ%SÓ%Uò Ñ!�˜ð   ‘|×(Ñ(�à ¤D§K¡KÓ/Ü1°$Õ7Ü8¸Õ>ä—M‘MÜ0Ø+¨J¯O©OÐ+>ð ?/à&˜kð *.ð.óð $%öñð4 �O‰OÜ×$Ñ$Ø 
˜|ð ,Gð Góôó 
Øùs   ‚A>C:ÂC:ÂC:ÂA!C:c                óJ   ‡ ‡‡— t        j                  ‰ «      ˆˆ ˆfd„«       }|S )zh
    Return a sync wrapper around a coroutine executing it in the
    specified runner and context.
    c                 ó<   •—  ‰| i |¤Ž}‰j                  |‰¬«       y )Nrê   ró   )rÙ   rw   Úcororë   rÇ   rÎ   s      €€€r;   rx   z%_synchronize_coroutine.<locals>.inner†  s"   ø€ á�TÐ$˜VÑ$ˆØ�
‰
�4 ˆ
Õ)r:   rÛ   )rÇ   rÎ   rë   rx   s   ``` r;   r3  r3  |  s'   ú€ ô ‡_�_�TÓõ*ó ð*ð €Lr:   )Úwrapperc              #  óJ  K  — | j                   dk(  r?| j                  j                  t        k7  r"t	        j
                  t        t        «      «       t        |j                  «      }t        | j                  «      s0|t        j                  k(  rd –—S t        | j                  «      sd –—S |j                  j                  d«      }t        | j                  dd «      xs |xs | j                   }d|› d�}|j#                  |«      }|j%                  |«      }|j'                  t)        j*                  | j,                  |¬«      «       t/        | ||«      }t1        ||«       t3        j4                  «       5 }	|	j7                  | d|«       d –—}
d d d «       |
S # 1 sw Y   
S xY w­w)NÚevent_loop_policyr^   r‡   r(  r)  ©rÏ   rÇ   )ÚargnamerÇ   r6   r5   r¸   r¹   r"   Ú._EVENT_LOOP_POLICY_FIXTURE_DEPRECATION_WARNINGr�   rK   r„   r=   rA   rŒ   r–   r�   rj   r-  Ú_get_active_fixturedefrû   r{   ÚpartialÚfinishrÐ   rz   r   rë   r5  )rÍ   rÏ   rR   r;  rk   r0  rÎ   Úrunner_fixturedefÚsynchronizerr8  ro  s              r;   Úpytest_fixture_setuprÀ  Ž  ss  è ø€ ð 	×ÑÐ1Ò1Ø�O‰O×&Ñ&¬(Ò2ä�‰Ü$Ô%SÓTô	
ô % W§^¡^Ó4€LÜ'¨
¯©Ô8Øœ4Ÿ;™;Ò&ò ˆNÜ(¨¯©Ô9ÚˆNØ Ÿ™×.Ñ.Ð/SÓTÐä�
—‘ °Ó5ò 	Øò	à×Ñð ð
 ˜J˜< ~Ð6ÐØ×$Ñ$Ð%6Ó7€Fà×6Ñ6Ð7HÓIÐØ×"Ñ"Ü×Ñ˜*×+Ñ+°WÔ=ôô )¨°V¸WÓE€LÜ" <°Ô<Ü	×	Ñ	Ó	ð  !Ø	�	‰	�*˜f lÔ3Úˆ÷ð Ð÷ð Ðüs   ‚E2F#Å4FÆ
F#ÆF ÆF#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.
zGmark.asyncio 'loop_factories' must be a non-empty sequence of strings.
zÂOverriding the "event_loop_policy" fixture is deprecated and will be removed in a future version of pytest-asyncio. Use the "pytest_asyncio_loop_factories" hook to customize event loop creation.c                óV  — | j                   dk(  sJ ‚t        | «       d| j                  v rId| j                  v rt        j                  t
        «      ‚t        j                  t        t        «      «       | j                  j                  d«      xs | j                  j                  d«      }|�|dv sJ ‚| j                  j                  d«      }|€|d fS t        |t        «      st        |t        «      st        t        «      ‚|rt!        d„ |D «       «      rt        t        «      ‚||fS )NrQ   rj   rk   >   r-   r,   r+   r*   r.   Úloop_factoriesc              3  óH   K  — | ]  }t        |t        «       xs | –— Œ y ­wrG   )r    r¤   )r‘   Úfactory_names     r;   r“   z(_parse_asyncio_marker.<locals>.<genexpr>Ü  s-   è ø€ ò àô �|¤SÓ)Ð)Ò=°Ð-=Ó=ñùs   ‚ ")ro   Ú_validate_asyncio_markerrw   rB   r™   Ú&_DUPLICATE_LOOP_SCOPE_DEFINITION_ERRORr¸   r¹   r"   Ú'_MARKER_SCOPE_KWARG_DEPRECATION_WARNINGr  r    r¤   r   r—   Ú_INVALID_LOOP_FACTORIES_KWARGr«   )r…  rj   Úmarker_values      r;   r}  r}  É  s  € ð ×Ñ )Ò+Ð+Ð+Ü˜^Ô,Ø�.×'Ñ'Ñ'Ø˜>×0Ñ0Ñ0Ü×#Ñ#Ô$JÓKÐKÜ�‰Ô.Ô/VÓWÔXØ×!Ñ!×%Ñ% lÓ3ò °~×7LÑ7L×7PÑ7PØó8€Eð ÐØÐMÑMÐMÐMØ!×(Ñ(×,Ñ,Ð-=Ó>€LØÐØ�dˆ{ÐÜ�,¤Ô$¬J°|ÄXÔ,NÜÔ6Ó7Ð7Ùœ3ñ à(ôô ô Ô6Ó7Ð7Ø�,ÐÐr:   c                ó„   — | j                   s&| j                  r(t        | j                  «      h d£z
  rd}t        |«      ‚y y )N>   rj   rk   rÂ  zNmark.asyncio accepts only keyword arguments 'loop_scope' and 'loop_factories'.)rÙ   rw   r  r—   )r…  rï   s     r;   rÅ  rÅ  ä  sI   € Ø×ÒØ×ÒÜ�×%Ñ%Ó&Ò)RÒRð!ð 	ô ˜‹oÐð Sð 	r:   c                ó$   — | j                  d«      S )Nr`   )r–   )rK   s    r;   rÁ   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                óR   — t        j                  | d| › d�¬«      	 	 	 	 dd„«       }|S )Nr(  r)  )rj   ro   c              3  óÞ  K  — | }t        |j                  «      }t        |«      5  t        ||¬«      j	                  «       }|�t        |j                  «       «       	 |–— t        j                  «       5  t        j                  ddt        «       	 |j                  d d d «       d d d «       |�t        d «       	 d d d «       y # t        $ r6 t        j                  t        t        j                   «       z  t        «       Y Œ]w xY w# 1 sw Y   ŒbxY w# t"        $ r0}|j                  t%        |«      ||j&                  «       Y d }~Œ™d }~ww xY w# |�t        d «       w w xY w# 1 sw Y   y xY w­w)N)rÃ   Úloop_factoryr›  z$.*BaseEventLoop.shutdown_asyncgens.*)r¡   rK   r˜  r&   Ú	__enter__r�  r×   r¸   rœ  ÚfilterwarningsÚRuntimeWarningÚ__exit__r�  r¹   Ú_RUNNER_TEARDOWN_WARNINGÚ	tracebackÚ
format_excÚ	Exceptionr]   Ú__traceback__)r·  r.  rÏ   Únew_loop_policyÚ
debug_moderÎ   r›   s          r;   r)  z5_create_scoped_runner_fixture.<locals>._scoped_runner   sJ  è ø€ ð ,ˆÜ'¨¯©Ó7ˆ
Ü)¨/Ó:ñ 	*ÜØ Ø2ô÷ ‰i‹kð ð %Ð0Ü §¡Ó 1Ô2ð*Ø’ô ×,Ñ,Ó.ñ 
Ü×+Ñ+Ø Ð"HÌ.ôðØŸ™¨¨d°DÔ9÷
ð )Ð4Ü# DÕ)÷3	*ð 	*øô$ (ò Ü Ÿ™Ü4´y×7KÑ7KÓ7MÑMÜ*öðú÷
ð 
ûô ò =Ø—‘¤ Q£¨¨A¯O©O×<Ñ<ûð=ûð )Ð4Ü# DÕ)ð 5ú÷1	*ð 	*üsŽ   ‚#E-¥7E!ÁDÁ!EÁ5DÂCÂ%EÂ-E!Â;	E-Ã<DÄ DÄDÄDÄD	ÄEÄ	EÄ&EÅEÅEÅEÅEÅE!Å!E*Å&E-)rÏ   r   rN   zIterator[Runner])rB   rs   )rj   r)  s     r;   Ú_create_scoped_runner_fixturerÚ  ÿ  sI   € Ü‡^�^ØØ���~Ð&ôð *ð  ð *ð 
ò	 *ó	ð *ðD Ðr:   r(  r)  r*   )rj   c                ó   — t        | dd «      S )Nr€  r€   r¸  s    r;   r.  r.  /  s   € ä�7˜G TÓ*Ð*r:   )rj   rm   c                 ó   — t        «       S )zDReturn an instance of the policy used to create asyncio event loops.)r”  r9   r:   r;   r·  r·  4  s   € ô "Ó#Ð#r:   c                ó"   — t        | t        «      S )z4Returns whether a test item is a pytest-asyncio test)r    r  r%  s    r;   r«  r«  :  s   € ä�dÔ1Ó2Ð2r:   c                óÈ   — t        j                  t        j                  | ¬«      «      5 }|j                  d«       |j	                  «       d   cddd«       S # 1 sw Y   yxY w)z<Find an unused localhost port from 1024-65535 and return it.)r]   )z	127.0.0.1r   ry  N)Ú
contextlibÚclosingÚsocketÚbindÚgetsockname)Úsocket_typeÚsocks     r;   Ú_unused_portræ  ?  sN   € ä	×	Ñ	œFŸM™M¨{Ô;Ó	<ð %ÀØ�	‰	Ð"Ô#Ø×ÑÓ! !Ñ$÷%÷ %ò %ús   ª$AÁA!c                 ó4   — t        t        j                  «      S rG   )ræ  rá  ÚSOCK_STREAMr9   r:   r;   Úunused_tcp_portré  F  s   € äœ×*Ñ*Ó+Ð+r:   c                 ó4   — t        t        j                  «      S rG   )ræ  rá  Ú
SOCK_DGRAMr9   r:   r;   Úunused_udp_portrì  K  s   € äœ×)Ñ)Ó*Ð*r:   c                 ó&   ‡— t        «       Šˆfd„} | S )z9A factory function, producing different unused TCP ports.c                 ó    •— t        t        j                  «      } | ‰v rt        t        j                  «      } | ‰v rŒ‰j                  | «       | S ©zReturn an unused port.)ræ  rá  rè  Úadd©ÚportÚproduceds    €r;   r¦   z(unused_tcp_port_factory.<locals>.factoryU  sH   ø€ äœF×.Ñ.Ó/ˆà�hÑÜ¤× 2Ñ 2Ó3ˆDð �hÒð 	�‰�TÔàˆr:   ©r  ©r¦   ró  s    @r;   Úunused_tcp_port_factoryrö  P  ó   ø€ ô ‹u€Hô	ð €Nr:   c                 ó&   ‡— t        «       Šˆfd„} | S )z9A factory function, producing different unused UDP ports.c                 ó    •— t        t        j                  «      } | ‰v rt        t        j                  «      } | ‰v rŒ‰j                  | «       | S rï  )ræ  rá  rë  rð  rñ  s    €r;   r¦   z(unused_udp_port_factory.<locals>.factoryh  sH   ø€ äœF×-Ñ-Ó.ˆà�hÑÜ¤× 1Ñ 1Ó2ˆDð �hÒð 	�‰�TÔàˆr:   rô  rõ  s    @r;   Úunused_udp_port_factoryrú  c  r÷  r:   )rf   r    rg   r#   rN   rò   )rr   ry   rj   ú0_ScopeName | Callable[[str, Config], _ScopeName]rk   ú_ScopeName | Nonerl   úIterable[object] | Nonerm   r[   rn   úQIterable[str | float | int | bool | None] | Callable[[Any], object | None] | Nonero   ú
str | NonerN   ry   ).)rr   rò   rj   rû  rk   rü  rl   rý  rm   r[   rn   rþ  ro   rÿ  rN   z<Callable[[FixtureFunction[_P, _R]], FixtureFunction[_P, _R]])NN)rr   zFixtureFunction[_P, _R] | Nonerk   rü  rw   r   rN   zVFixtureFunction[_P, _R] | Callable[[FixtureFunction[_P, _R]], FixtureFunction[_P, _R]])rƒ   r   rN   r[   )rƒ   r   rk   rü  rN   rò   )rK   r   rN   r=   )rK   r   rN   r[   )rK   r   rL   r   rN   zdict[str, LoopFactory] | None)rj   rÿ  r²   r¤   rN   rò   )rK   r   rN   rò   )rK   r   rN   z	list[str])rÍ   r   rÎ   r&   rÏ   r   rN   r   )rr   úBCallable[SyncGenFixtureParams, Generator[SyncGenFixtureYieldType]]rÎ   r&   rN   r   )rr   ú2Callable[SyncFixtureParams, SyncFixtureReturnType]rÎ   r&   rN   r  )rr   zRCallable[AsyncGenFixtureParams, AsyncGeneratorType[AsyncGenFixtureYieldType, Any]]rÎ   r&   rÏ   r   rN   z9Callable[AsyncGenFixtureParams, AsyncGenFixtureYieldType])rr   zMCallable[AsyncFixtureParams, CoroutineType[Any, Any, AsyncFixtureReturnType]]rÎ   r&   rÏ   r   rN   z4Callable[AsyncFixtureParams, AsyncFixtureReturnType])rë   úcontextvars.ContextrN   zCallable[[], None] | None)rL   r   rN   zMark | None)rn  zpytest.Module | pytest.Classro   r¤   rƒ   ÚobjectrN   z$Generator[None, pluggy.Result, None])r„  zpytest.MetafuncrN   rò   )r‘  r   rN   úIterator[None])r–  r)   rN   r  )rN   r)   )r–  r)   rN   rò   rG   )r–  zAbstractEventLoopPolicy | NonerN   zasyncio.AbstractEventLoop)r‘  zAbstractEventLoop | NonerN   rò   )r®  r   rN   úobject | None)rÇ   zCallable[..., CoroutineType]rÎ   zasyncio.Runnerrë   r  )rÍ   r   rN   r  )r…  r   rN   z.tuple[_ScopeName | None, Sequence[str] | None])r…  r   rN   rò   )rK   r   rN   r   )rj   r@  rN   r   )rÏ   r   rN   zLoopFactory | None)rL   r   rN   zTypeIs[PytestAsyncioFunction])rä  ÚintrN   r  )rN   r  )rN   zCallable[[], int])‹r8   Ú
__future__r   rQ   rß  rø   Úenumr{   r‰   rá  ÚsysrÔ  r¸   r   Úcollections.abcr   r   r   r   r	   r
   r   r   r   Útypesr   r   Útypingr   r   r   r   r   r   r   ÚpluggyrB   Ú_pytest.fixturesr   Ú_pytest.scoper   r   r   r   r   r   r   r   r    r!   r"   r#   Úversion_infor&   Úbackports.asyncio.runnerr(   Útyping_extensionsr)   r@  r/   r1   ÚFixtureFunctionr2   Ú__annotations__rÖ  r4   r¤   ÚEnumr=   ÚHookspecMarkerrO   rD   rd   ri   rs   r„   rz   rŒ   r�   r¡   r©   r°   rº   rµ   r¾   ÚhookimplrÅ   rÐ   rÑ   rÒ   rË   rÜ   rÝ   rÌ   rá   râ   rÈ   rý   rþ   rÉ   rú   r  rI  rN  rX  r[  rd  rv  rŒ  ÚcontextmanagerrÖ   r˜  r”  r•  rŽ  r�  r±  r3  rÀ  rÆ  rÇ  rÈ  rº  r}  rÅ  rÁ   rÓ  rÚ  rj   r�   Úglobalsr.  r·  r«  ræ  ré  rì  rö  rú  r9   r:   r;   ú<module>r     sß  ðÚ $å "ã Û Û Û Û Û Û Û 
Û Û Ý %÷
÷ 
õ 
÷ 4÷÷ ñ ó Û Ý 5Ý ÷÷ ÷ ñ ð ×Ñ�wÒÞå/à×Ñ�wÒÞå(áõ 0àÐHÑI€
ÙˆT˜ 3™¨-¸Ñ*<Ñ<Ô=€Ùˆtƒ_€Ø˜2˜r˜6Ñ"€Ø! "Ð&7Ð"7Ñ8€ˆYÓ 8ô=˜ô =ôˆ3�—	‘	ô ð
 !ˆ6× Ñ  Ó*€÷"ñ "ðÐ ó'ðT 
ð ?BØ$'Ø&)Øð
 	Øñ"Ø-ð"ð <ð"ð "ð	"ð
 $ð"ð ð"ð	ð"ð ð"ð ò"ó 
ð"ð  
à ðGð ?BØ$'Ø&)Øð
 	ØñGØðGð <ðGð "ð	Gð
 $ðGð ðGð	ðGð ðGð BòGó 
ðGð" 8<Ø$(ðØ4ðà!ðð ðð
Cóó*9ó
!óOó
óðÐ ðØðà
ðð #óð,%Ð !ó
óð  €‡�˜$Ôòó  ðð"<Øð<Ø$*ð<Ø5Cð<àó<ñ !Ð!7Ó8Ð Ù!Ð";Ó<Ð ð$ðð$ð ð	$ð
 Hó$ñ" Ð1Ó2Ð ÙÐ 7Ó8Ð ð!ØHð!àð!ð 8ó!ñ "Ð"9Ó:Ð Ù"Ð#=Ó>Ð ð+%ðð+%ð ð	+%ð
 ð+%ð ?ó+%ñ\ Ð3Ó4Ð Ù Ð!9Ó:Ð ð!"ðð!"ð ð	!"ð
 ð!"ð :ó!"ðHØ ðàóô@]˜Hô ]ô@1Ð%ô 1ôÐ*ô ô,
Ð-ô 
ô1Ð/ô 1ó<ð €‡�Ð5À4ÔHð!6Ø+ð!6Ø36ð!6Ø=Cð!6à)ò!6ó Ið!6ðH €‡�˜$Ôò<ó  ð<ð~ ×Ñò"ó ð"ð ×Ñð0Ø#ð0àò0ó ð0ó/ó.ð .2ð,Ø*ð,àó,ó%ð €‡�˜$¨DÔ1ò)ó 2ð)ðXØ
&ðàðð !óð$ €‡�˜Ôò"ó ð"ðJ*Ð &ð
+Ð 'ð
!Ð ð2Ð .ðØðà3óó6	ó<ðÐ ó'ðT ò €EÙ1NØ�Šó2�GƒI��%—+’+�˜nÐ-Ò.ðð €‡��iÔ ò+ó !ð+ð €‡��i¨Ô.ò$ó /ð$ó
3ó
%ð ‡�ò,ó ð,ð ‡�ò+ó ð+ð €‡��iÔ òó !ðð$ €‡��iÔ òó !ñr:   