ó
    úÞ j8•  ã            	      ó°  • % S r SSKJr  SSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSKJr  SSKJrJrJrJrJrJrJrJrJr  SSKJrJr  SSKJrJrJrJrJ r J!r!J"r"  SSK#r#SSK$r$SSK%J&r&  SS	K'J(r(  SS
K$J)r)J*r*J+r+J,r,J-r-J.r.J/r/J0r0J1r1J2r2J3r3  \
Rh                  S:¼  a  SSKJ5r5  OSSK6J5r5  \
Rh                  S:¼  a  SSKJ7r7  OSSK8J7r7  \(       a  SSKJ9r9  \S   r:\!" S\\   \\   -  S9r;\" S5      r<\\<\;4   r=\/ \4   r>S\?S'    " S S\@5      rA " S S\B\R†                  5      rD\#RŠ                  " S5      rF " S S5      rGSrHSoS jrI\"SSSSSSS .               SpS! jj5       rJ\" SqSSSSSSS .               SrS" jjj5       rJ  Ss       StS# jjrJSuS$ jrKSvS% jrLSuS& jrMSwS' jrNSxS( jrOS)rP      SyS* jrQS+rRSzS, jrSS{S- jrT\$Rª                  " S.S/9S|S0 j5       rV        S}S1 jrW\" S25      rX\!" S35      rY      S~S4 jrZ\" S55      r[\!" S65      r\      SS7 jr]\" S85      r^\!" S95      r_        S€S: jr`\" S;5      ra\!" S<5      rb        S�S= jrc    S‚S> jrd " S? S@\,5      re " SA SB\e5      rf " SC SD\e5      rg " SE SF\e5      rh " SG SH\e5      riSƒSI jrj\$Rª                  " SJS.SK9        S„SL j5       rk\$Rª                  " S.S/9S…SM j5       rl\RÚ                  S†SN j5       rn\RÚ                      S‡SO j5       roSˆSP jrpS‰SQ jrq SŠ   S‹SR jjrrSŒSS jrs\$Rª                  " S.S.ST9S�SU j5       rt      SŽSV jru\$Rª                  " S.SW9S�SX j5       rvSYrwSZrxS[ryS\rz    S�S] jr{S‘S^ jr|S’S_ jr}S`r~S“Sa jr\( H-  r€\" \€GR                  5      \‚" 5       Sb\€GR                   Sc3'   M/     \$R”                  " SdSe9S”Sf j5       rƒ\$R”                  " SdS.Sg9SˆSh j5       r„S•Si jr…S–Sj jr†\$R”                  S—Sk j5       r‡\$R”                  S—Sl j5       rˆ\$R”                  " SdSe9S˜Sm j5       r‰\$R”                  " SdSe9S˜Sn j5       rŠg)™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                  ó   • \ rS rSrSrSrg)ÚPytestAsyncioErroréN   z2Base class for exceptions raised by pytest-asyncio© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r6   ó    ÚO/var/www/html/gaurav/venv/lib/python3.13/site-packages/pytest_asyncio/plugin.pyr4   r4   N   s   † Ü<r=   r4   c                  ó   • \ rS rSrSrSrSrg)ÚModeéR   ÚautoÚstrictr6   N)r7   r8   r9   r:   ÚAUTOÚSTRICTr<   r6   r=   r>   r@   r@   R   s   † Ø€DØƒFr=   r@   Úpytestc                  ó<   • \ rS rSr\" SS9      SS j5       rSrg)ÚPytestAsyncioSpecséZ   T)Úfirstresultc                ó   • [         e©N©ÚNotImplementedError)ÚselfÚconfigÚitems      r>   Úpytest_asyncio_loop_factoriesÚ0PytestAsyncioSpecs.pytest_asyncio_loop_factories[   s
   € ô "Ð!r=   r6   N)rP   r   rQ   r   Úreturnz Mapping[str, LoopFactory] | None)r7   r8   r9   r:   ÚhookspecrR   r<   r6   r=   r>   rH   rH   Z   s5   † Ù˜$Ñð"àð"ð ð"ð 
*ó	"ó  ó"r=   rH   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                ó2  • UR                  [        5        U R                  S5      nUR                  SSS S[        S9  UR                  SSSS S	S
9  U R                  SSSS9  U R                  SS	SSS9  U R                  SSSS S9  U R                  SSSSS9  g )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)rZ   Úactionr[   r]   z default value for --asyncio-moderC   )r]   r[   ÚboolÚfalse)r]   Útyper[   Ú"asyncio_default_fixture_loop_scopeÚstringzFdefault scope of the asyncio event loop used to execute async fixtures)rc   r]   r[   Úasyncio_default_test_loop_scopez=default scope of the asyncio event loop used to execute testsr.   )Úadd_hookspecsrH   ÚgetgroupÚ	addoptionÚASYNCIO_MODE_HELPÚaddini)ÚparserÚpluginmanagerÚgroups      r>   Úpytest_addoptionro   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               ó   • g rL   r6   ©Úfixture_functionrp   rq   rr   rs   rt   ru   s          r>   Úfixturery   –   s   € ð "r=   c               ó   • g rL   r6   rw   s          r>   ry   ry   §   s	   € ð DGr=   c                ó¢   ^^• U b#  [        U T5        [        R                  " U 40 TD6$ [        R                  " [        5      SUU4S jj5       nU$ )Nc                ó    >• [        U 4ST0TD6$ )Nrq   )ry   )rx   Úkwargsrq   s    €€r>   ÚinnerÚfixture.<locals>.innerÆ   s   ø€ äÐ+ÑM¸
ÐMÀfÑMÐMr=   )rx   úFixtureFunction[_P, _R]rT   r€   )Ú_make_asyncio_fixture_functionrF   ry   Ú	functoolsÚwraps)rx   rq   r}   r~   s    `` r>   ry   ry   ¸   sQ   ù€ ð Ñ#Ü&Ð'7¸ÔDÜ�~Š~Ð.Ñ9°&Ñ9Ð9ô 
�ŠœÓ	!÷	Nó 
"ð	Nð ˆr=   c                ó6   • [        U SU 5      n [        U SS5      $ )NÚ__func__Ú_force_asyncio_fixtureF©Úgetattr©Úobjs    r>   Ú_is_asyncio_fixture_functionr‹   Í   s    € Ü
�#�z 3Ó
'€CÜ�3Ð0°%Ó8Ð8r=   c                óX   • [        U S5      (       a  U R                  n SU l        Xl        g )Nr…   T)Úhasattrr…   r†   Ú_loop_scope)rŠ   rq   s     r>   r�   r�   Ò   s%   € Üˆs�J×Ñà�l‰lˆØ!%€CÔØ …Or=   c                óh   • [         R                  " U 5      =(       d    [         R                  " U 5      $ rL   )ÚinspectÚiscoroutinefunctionÚisasyncgenfunctionr‰   s    r>   Ú_is_coroutine_or_asyncgenr“   Ú   s#   € Ü×&Ò& sÓ+×N¬w×/IÒ/IÈ#Ó/NÐNr=   c                óü   • U R                  S5      nUc  U R                  S5      n [        U5      $ ! [         a?  nSR	                  S [         5       5      n[
        R                  " U< SU S35      UeS nAff = f)NrX   ú, c              3  ó6   #   • U H  oR                   v •  M     g 7frL   )Úvalue)Ú.0Úms     r>   Ú	<genexpr>Ú$_get_asyncio_mode.<locals>.<genexpr>å   s   é € Ð0©4 aŸ'ž'ª4ùs   ‚z+ is not a valid asyncio_mode. Valid modes: Ú.)Ú	getoptionÚgetinir@   Ú
ValueErrorÚjoinrF   Ú
UsageError)rP   ÚvalÚeÚmodess       r>   Ú_get_asyncio_moder¥   Þ   s   € Ø
×
Ñ
˜>Ó
*€CØ
�{Ø�m‰m˜NÓ+ˆðÜ�C‹yÐøÜó Ø—	‘	Ñ0­4Ó0Ó0ˆÜ×ÒØ‰gÐ@ÀÀÀqÐIó
àð	ûðús   §
2 ²
A;¼:A6Á6A;c                ó„   • U R                  S5      nUc  U R                  S5      n[        U[        5      (       a  U$ US:H  $ )Nr^   Útrue)r�   rž   Ú
isinstancera   )rP   r¢   s     r>   Ú_get_asyncio_debugr©   ë   sA   € Ø
×
Ñ
˜?Ó
+€CØ
�{Ø�m‰m˜OÓ,ˆä�#”t×ÑØˆ
à�f‰}Ðr=   z]pytest_asyncio_loop_factories must return a non-empty mapping of factory names to callables.
c                óp  • UR                   R                  nUR                  5       (       d  g U" XS9nUb  [        U[        5      (       d  [
        R                  " [        5      e[        U5      nU(       a%  [        S UR                  5        5       5      (       a  [
        R                  " [        5      eU$ )N)rP   rQ   c              3  ó˜   #   • U HA  u  p[        U[        5      (       + =(       d    U(       + =(       d    [        U5      (       + v •  MC     g 7frL   )r¨   ÚstrÚcallable)r˜   ru   Úfactorys      r>   rš   Ú/_collect_hook_loop_factories.<locals>.<genexpr>
  s:   é € ð á.‰MˆDô �tœSÓ!Ô!×F¨¤X×F´X¸gÓ5FÔ1FÔFÚ.ùs   ‚AA
)ÚihookrR   Úget_hookimplsr¨   r   rF   r¡   Ú_INVALID_LOOP_FACTORIESÚdictÚanyÚitems)rP   rQ   Úhook_callerÚresultÚ	factoriess        r>   Ú_collect_hook_loop_factoriesr¹   ü   sš   € ð —*‘*×:Ñ:€KØ×$Ñ$×&Ñ&Øá Ñ2€FØ�~œZ¨´×8Ñ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           	     óº   • U c  g [          Vs/ sH  o"R                  PM     nnX;  a/  [        R                  " U < SU SSR	                  U5       S35      eg s  snf )Nz is not a valid z. Valid scopes are: r•   rœ   )r   r—   rF   r¡   r    )rp   Úoption_nameÚsÚvalid_scopess       r>   Ú_validate_scoper¾     sj   € Ø�}ØÝ%*Ó+¡U —G”G¡U€LÐ+ØÓ Ü×ÒØ‰iÐ'¨ }ð 5!Ø!%§¡¨<Ó!8Ð 9¸ð<ó
ð 	
ð !ùò ,s   �Ac                óð   • U R                  S5      n[        US5        U(       d#  [        R                  " [	        [
        5      5        U R                  S5      n[        US5        U R                  SS5        g )Nrd   rf   Ú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)rP   Ú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                ó´   • [        U 5      n[        U 5      nU R                  S5      n[        U 5      nSU 3SU 3SU 3SU 3/nSSR	                  U5      -   /$ )z$Add asyncio config to pytest header.rd   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    )rP   Ú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                óR  • [        X5      n[        R                  " U R                  5      (       a  [	        X1U5      $ [        R
                  " U R                  5      (       a  [        X1U5      $ [        R                  " U R                  5      (       a  [        X15      $ [        X15      $ )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Úrequestrx   s       r>   Ú_fixture_synchronizerrÙ   I  s‚   € ô 0°
ÓDÐÜ×!Ò! *§/¡/×2Ñ2Ü%Ð&6ÀÓHÐHÜ	×	$Ò	$ Z§_¡_×	5Ñ	5Ü"Ð#3¸WÓEÐEÜ	×	$Ò	$ Z§_¡_×	5Ñ	5Ü$Ð%5Ó>Ð>ä!Ð"2Ó;Ð;r=   ÚSyncGenFixtureParamsÚSyncGenFixtureYieldTypec                óZ   ^ ^• [         R                  " T 5            SU U4S jj5       nU$ )Nc               ?  ó˜   >#   • [        TR                  5       5         T" U 0 UD6 S h  v•N   S S S 5        g  N! , (       d  f       g = f7frL   ©Ú_temporary_event_loopÚget_loop©Úargsr}   rx   r×   s     €€r>   Ú_syncgen_fixture_wrapperÚ7_wrap_syncgen_fixture.<locals>._syncgen_fixture_wrapperb  s=   øé € ô
 # 6§?¡?Ó#4Õ5Ù'¨Ð8°Ñ8×8Ð8÷ 6Ð5Ù8÷ 6Õ5üs%   ƒA
�9©7ª9®	A
·9¹
AÁA
)râ   zSyncGenFixtureParams.argsr}   zSyncGenFixtureParams.kwargsrT   z"Generator[SyncGenFixtureYieldType]©r‚   rƒ   )rx   r×   rã   s   `` r>   rÔ   rÔ   \  sC   ù€ ô ‡_‚_Ð%Ó&ð9Ø(ð9à-ð9ð 
,÷9ó 'ð9ð $Ð#r=   ÚSyncFixtureParamsÚSyncFixtureReturnTypec                óZ   ^ ^• [         R                  " T 5            SU U4S jj5       nU$ )Nc                 ó|   >• [        TR                  5       5         T" U 0 UD6sS S S 5        $ ! , (       d  f       g = frL   rÞ   rá   s     €€r>   Ú_sync_fixture_wrapperÚ1_wrap_sync_fixture.<locals>._sync_fixture_wrapperu  s-   ø€ ô
 # 6§?¡?Ó#4Õ5Ù# TÐ4¨VÑ4÷ 6×5×5ús   ›-­
;)râ   zSyncFixtureParams.argsr}   zSyncFixtureParams.kwargsrT   rç   rå   )rx   r×   rê   s   `` r>   rÕ   rÕ   q  sC   ù€ ô ‡_‚_Ð%Ó&ð5Ø%ð5à*ð5ð 
÷5ó 'ð5ð !Ð r=   ÚAsyncGenFixtureParamsÚAsyncGenFixtureYieldTypec                óZ   ^ ^^• [         R                  " T 5          SU UU4S jj5       nU$ )Nc                 óÌ   >^^^• T" U 0 UD6mU4S jn[         R                  " 5       mT
R                  U" 5       TS9n[        T5      mSUUUU
4S jjnT	R	                  U5        U$ )Nc               “  óD   >#   • TR                  5       I S h  v•N n U $  N7frL   )Ú	__anext__)ÚresÚgen_objs    €r>   ÚsetupÚH_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup’  s!   øé € Ø×)Ñ)Ó+×+ˆCØˆJñ ,ùs   ƒ —˜ ©Úcontextc                 óV   >• SU4S jjn TR                  U " 5       TS9  Tb  T" 5         gg)zYield again, to finalize.c               “  ó†   >#   •  TR                  5       I S h  v•N   Sn U S-  n [        U 5      e N! [         a     g f = f7f)Nz$Async generator fixture didn't stop.zYield only once.)rñ   rŸ   ÚStopAsyncIteration)Úmsgró   s    €r>   Úasync_finalizerÚe_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer.<locals>.async_finalizerž  sP   øé € ð*Ø!×+Ñ+Ó-×-Ð-ð A�CØÐ-Ñ-�CÜ$ S›/Ð)ñ .øÜ)ó Ùðüs,   ƒA…1 ˜/™1 �A¯1 ±
>»A½>¾Arö   N©rT   ÚNone©Úrun)rü   r÷   ró   Úreset_contextvarsr×   s    €€€€r>   Ú	finalizerÚL_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer›  s.   ø€ ÷*ð �J‰J‘Ó(°'ˆJÑ:Ø Ñ,Ù!Õ#ð -r=   rþ   ©ÚcontextvarsÚcopy_contextr  Ú_apply_contextvar_changesÚaddfinalizer)râ   r}   rô   r·   r  r÷   ró   r  rx   rØ   r×   s        @@@€€€r>   Ú_asyncgen_fixture_wrapperÚ9_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper‹  sg   û€ ñ
 # DÐ3¨FÑ3ˆõ	ô ×*Ò*Ó,ˆØ—‘™E›G¨W�Ð5ˆä5°gÓ>Ð÷	$ò 	$ð" 	×Ñ˜YÔ'Øˆr=   )râ   zAsyncGenFixtureParams.argsr}   zAsyncGenFixtureParams.kwargsrå   )rx   r×   rØ   r
  s   ``` r>   rÑ   rÑ   „  s?   ú€ ô ‡_‚_Ð%Ó&ð!Ø)ð!à.÷!ð !ó 'ð!ðF %Ð$r=   ÚAsyncFixtureParamsÚAsyncFixtureReturnTypec                óZ   ^ ^^• [         R                  " T 5          SU UU4S jj5       nU$ )Nc                 ó®   >^ ^• U UU4S jn[         R                  " 5       nTR                  U" 5       US9n[        U5      nUb  TR	                  U5        U$ )Nc               “  ó4   >#   • T" T0 TD6I S h  v•N n U $  N7frL   r6   )rò   râ   rx   r}   s    €€€r>   rô   ÚB_wrap_async_fixture.<locals>._async_fixture_wrapper.<locals>.setupÂ  s"   øé € Ù(¨$Ð9°&Ñ9×9ˆCØˆJñ :ùs   ƒ��rö   r  )	râ   r}   rô   r÷   r·   r  rx   rØ   r×   s	   ``    €€€r>   Ú_async_fixture_wrapperÚ3_wrap_async_fixture.<locals>._async_fixture_wrapper½  sS   ú€ ÷
	ô ×*Ò*Ó,ˆØ—‘™E›G¨W�Ð5ˆô 6°gÓ>ÐØÑ(Ø× Ñ Ð!2Ô3àˆr=   )râ   zAsyncFixtureParams.argsr}   zAsyncFixtureParams.kwargsrå   )rx   r×   rØ   r  s   ``` r>   rÒ   rÒ   ¶  s>   ú€ ô ‡_‚_Ð%Ó&ðØ&ðà+÷ð ó 'ðð2 "Ð!r=   c                ó
  ^• / mU  H[  n UR                  5       U R                  U5      L a  M(   UR                  U R                  U5      5      nTR                  X45        M]     T(       d  gU4S jnU$ ! [         a     NRf = f)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                 ón   >• T(       a-  TR                  5       u  pU R                  U5        T(       a  M,  g g rL   )ÚpopÚreset)ÚvarÚtokenÚcontext_tokenss     €r>   Úrestore_contextvarsÚ6_apply_contextvar_changes.<locals>.restore_contextvarsò  s)   ø€ ÞØ'×+Ñ+Ó-‰JˆCØ�I‰I�eÔ÷ Šnr=   )ÚgetÚLookupErrorÚsetÚappend)r÷   r  r  r  r  s       @r>   r  r  Ú  sŠ   ø€ ð €NÛˆð	Ø�w‰w‹y˜GŸK™K¨Ó,Ò,áð -ð —‘˜Ÿ™ CÓ(Ó)ˆØ×Ñ˜s˜lÖ+ñ ö Øõð
 Ðøô ó 	áð	ús   Š"A5Á5
BÂBc                  ó¸   ^ • \ rS rSrSr\SS j5       r\SS j5       r\SS j5       r	SU 4S jjr
SU 4S jjr\R                  SS j5       r\SS	 j5       rS
rU =r$ )ÚPytestAsyncioFunctioniú  z<Base class for all test functions managed by pytest-asyncio.c               óf   • U R                  5        H  nUR                  U5      (       d  M  Us  $    g)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)ÚclsrQ   Úsubclasss      r>   Úitem_subclass_forÚ'PytestAsyncioFunction.item_subclass_forý  s2   € ð ×*Ñ*Ö,ˆHØ×'Ñ'¨×-Ó-Ø’ñ -ð r=   c          
     óf  • UR                  S5      (       d   eUR                  c   eU R                  UR                  UR                  [	        USS5      UR
                  UR                  UR                  UR                  S9nUR                  Ul	        UR                  UR                  :X  d   eU$ )zY
Instantiates this specific PytestAsyncioFunction type from the specified
Function item.
rW   NÚcallspec)ru   r+  ÚcallobjÚfixtureinfoÚkeywordsÚoriginalname)
Úget_closest_markerÚparentÚfrom_parentru   rˆ   rŠ   Ú_fixtureinfor.  r/  Úown_markers)r&  r.   Úsubclass_instances      r>   Ú_from_functionÚ$PytestAsyncioFunction._from_function
  s¬   € ð ×*Ñ*¨9×5Ñ5Ð5Ð5Ø�‰Ñ*Ð*Ð*ØŸO™OØ�O‰OØ—‘Ü˜X z°4Ó8Ø—L‘LØ ×-Ñ-Ø×&Ñ&Ø!×.Ñ.ð ,ð 
Ðð )1×(<Ñ(<ÐÔ%Ø ×,Ñ,°×0DÑ0DÓDÐDÐDØ Ð r=   c                ó   • [        5       e)zDReturns whether the specified function can be replaced by this classrM   ©rQ   s    r>   r%  Ú%PytestAsyncioFunction._can_substitute  s   € ô "Ó#Ð#r=   c                óP  >• SU R                    S3nXR                  ;  a  U R                  R                  U5        U R                  R                  R
                  nUR                  5       (       a)  U R                  R                  [        R                  5      n[        TU ]1  5       $ ©NÚ_Ú_scoped_runner)rŽ   Úfixturenamesr   rP   ÚhookrR   r±   Ú_requestÚgetfixturevalueÚ_asyncio_loop_factoryr7   Úsuperrô   )rO   Úrunner_fixture_idr¶   r=  Ú	__class__s       €r>   rô   ÚPytestAsyncioFunction.setup$  s‡   ø€ Ø × 0Ñ 0Ð1°Ð@ÐØ×$5Ñ$5Ó5Ø×Ñ×$Ñ$Ð%6Ô7ð —k‘k×&Ñ&×DÑDˆØ×$Ñ$×&Ñ&Ø—‘×-Ñ-Ô.C×.LÑ.LÓMˆAÜ‰w‰}‹Ðr=   c                ót  >• SU R                    S3nU R                  R                  U5      n[        R                  " 5       n[        [        U R                  6 X#5      n[        R                  " 5        nUR                  " / U R                  QUP76   [        TU ]1  5         S S S 5        g ! , (       d  f       g = fr<  )rŽ   rA  rB  r  r  Ú_synchronize_coroutinerˆ   Ú_synchronization_target_attrr   r÷   ÚsetattrrD  Úruntest)rO   rE  r×   r÷   Úsynchronized_objÚcrF  s         €r>   rL  ÚPytestAsyncioFunction.runtest0  s˜   ø€ Ø × 0Ñ 0Ð1°Ð@ÐØ—‘×.Ñ.Ð/@ÓAˆÜ×*Ò*Ó,ˆÜ1Ü�T×6Ñ6Ð7¸ó
Ðô × Ò Ô" aØ�IŠIÐK�t×8Ñ8ÐKÐ:JÓKÜ‰G‰OÔ÷ #×"Ö"ús   Á3-B)Â)
B7c                óà   • U R                  S5      nUc   e[        U R                  5      nUR                  R	                  S5      =(       d    UR                  R	                  S5      nUc  U$ U$ )aJ  
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.
rW   rq   rp   )r0  rÊ   rP   r}   r  )rO   ÚmarkerÚdefault_loop_scoperq   s       r>   rŽ   Ú!PytestAsyncioFunction._loop_scope;  si   € ð ×(Ñ(¨Ó3ˆØÑ!Ð!Ð!Ü9¸$¿+¹+ÓFÐØ—]‘]×&Ñ& |Ó4×R¸¿¹×8IÑ8IÈ'Ó8Rˆ
ØÑØ%Ð%àÐr=   c                ó
   • U S4$ )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Š   r6   ©rO   s    r>   rJ  Ú2PytestAsyncioFunction._synchronization_target_attrN  s   € ð �Uˆ{Ðr=   r6   )rQ   r   rT   z"type[PytestAsyncioFunction] | None©r.   r   rT   r   ©rQ   r   rT   ra   rþ   )rT   Ú
_ScopeName©rT   ztuple[object, str])r7   r8   r9   r:   r;   Úclassmethodr(  r6  Ústaticmethodr%  rô   rL  r‚   Úcached_propertyrŽ   ÚpropertyrJ  r<   Ú__classcell__©rF  s   @r>   r"  r"  ú  sx   ø† ÙFàó
ó ð
ð ó!ó ð!ð( ó$ó ð$÷
÷	ð ×Ñóó ðð$ óó ör=   r"  c                  ó,   • \ rS rSrSr\SS j5       rSrg)Ú	CoroutineiZ  z"Pytest item created by a coroutinec                óF   • U R                   n[        R                  " U5      $ rL   )rŠ   r�   r‘   ©rQ   rÐ   s     r>   r%  ÚCoroutine._can_substitute]  s   € à�x‰xˆÜ×*Ò*¨4Ó0Ð0r=   r6   NrX  ©r7   r8   r9   r:   r;   r\  r%  r<   r6   r=   r>   rb  rb  Z  s   † Ù,àó1ó ó1r=   rb  c                  óN   ^ • \ rS rSrSr\SS j5       r\SU 4S jj5       rSr	U =r
$ )ÚAsyncGeneratoric  z0Pytest item created by an asynchronous generatorc                óF   • U R                   n[        R                  " U5      $ rL   )rŠ   r�   r’   rd  s     r>   r%  ÚAsyncGenerator._can_substitutef  s   € à�x‰xˆÜ×)Ò)¨$Ó/Ð/r=   c               óÔ   >• [         TU ]  U5      nSUR                   S3nUR                  [	        U5      5        UR                  [        R                  R                  SUS95        U$ )Nz:Tests based on asynchronous generators are not supported. z will be ignored.F)r  Úreason)	rD  r6  ru   rÂ   r!   Ú
add_markerrF   ÚmarkÚxfail)r&  r.   Úasync_gen_itemÚunsupported_item_type_messagerF  s       €r>   r6  ÚAsyncGenerator._from_functionk  sp   ø€ ä™Ñ/°Ó9ˆàHØ�}‰}ˆoÐ.ð0ð 	&ð 	×ÑÔ3Ð4QÓRÔSØ×!Ñ!Ü�K‰K×Ñ %Ð0MÐÐNô	
ð Ðr=   r6   rX  rW  )r7   r8   r9   r:   r;   r\  r%  r[  r6  r<   r_  r`  s   @r>   rh  rh  c  s,   ø† Ù:àó0ó ð0ð ö
ó ö
r=   rh  c                  ó,   • \ rS rSrSr\SS j5       rSrg)ÚAsyncStaticMethodiy  zZ
Pytest item that is a coroutine or an asynchronous generator
decorated with staticmethod
c                ór   • U R                   n[        U[        5      =(       a    [        UR                  5      $ rL   )rŠ   r¨   r\  r“   r…   rd  s     r>   r%  Ú!AsyncStaticMethod._can_substitute  s.   € à�x‰xˆÜ˜$¤Ó-÷ 
Ô2KØ�M‰Mó3
ð 	
r=   r6   NrX  rf  r6   r=   r>   rt  rt  y  s   † ñð
 ó
ó ó
r=   rt  c                  óX   ^ • \ rS rSrSrSU 4S jjr\SS j5       r\S	S j5       r	Sr
U =r$ )
ÚAsyncHypothesisTesti‡  z\
Pytest item that is coroutine or an asynchronous generator decorated by
@hypothesis.given.
c                óÆ   >• [        U R                  SS5      (       d7  [        U R                  SS5      (       a  [        R                  " SU < S35        [        TU ]  5       $ )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Š   rF   ÚfailrD  rô   )rO   rF  s    €r>   rô   ÚAsyncHypothesisTest.setup�  s[   ø€ Ü�t—x‘x ¨u×5Ñ5¼'Ø�H‰HÐ*¨E÷;
ñ ;
ô �KŠKØ! $¡ð *>ð >ôô ‰w‰}‹Ðr=   c                ó¾   • U R                   n[        USS5      =(       a>    [        USS 5      =(       a*    [        R                  " UR                  R
                  5      $ )Nr{  Frz  )rŠ   rˆ   r�   r‘   rz  Ú
inner_testrd  s     r>   r%  Ú#AsyncHypothesisTest._can_substitute—  sM   € à�x‰xˆä�DÐ.°Ó6÷ HÜ˜˜l¨DÓ1÷Hä×+Ò+¨D¯O©O×,FÑ,FÓGð	
r=   c                ó2   • U R                   R                  S4$ )Nr  )rŠ   rz  rU  s    r>   rJ  Ú0AsyncHypothesisTest._synchronization_target_attr   s   € à�x‰x×"Ñ" LÐ0Ð0r=   r6   rþ   rX  rZ  )r7   r8   r9   r:   r;   rô   r\  r%  r^  rJ  r<   r_  r`  s   @r>   rx  rx  ‡  s5   ø† ñ÷
ð ó
ó ð
ð ó1ó ö1r=   rx  c                óÂ   • U R                  S5      nUb  U$ [        U R                  5      [        R                  :X  a"  U R                  S5        U R                  S5      $ g )NrW   )r0  r¥   rP   r@   rD   rm  )rQ   rQ  s     r>   Ú_resolve_asyncio_markerr„  ¥  sR   € Ø×$Ñ$ YÓ/€FØÑØˆÜ˜Ÿ™Ó%¬¯©Ó2Ø�‰˜	Ô"Ø×&Ñ& yÓ1Ð1Ør=   Úpytest_pycollect_makeitem)ÚspecnameÚhookwrapperc              #  óâ  #   • Sv •n UR                  5       nU(       d  g[        U[        5      (       a  [        U5      nO[        U45      n/ nU H`  nUn	[        U[        5      (       a5  [        R                  U5      n
U
b  [        U5      b  U
R                  U5      n	UR                  U	5        Mb     UR                  U5        g! [         a  nUR                  U5         SnAgSnAff = f7f)z`
Converts coroutines and async generators collected as pytest.Functions
to AsyncFunction items.
N)Ú
get_resultÚBaseExceptionÚforce_exceptionr¨   r   Úiterr   r"  r(  r„  r6  r   Úforce_result)Ú	collectorru   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_subclassr–  ±  sê   é € ò €Kðð ×"Ñ"Ó$ð 	ö !ØÜÐ'¬×2Ñ2ÜÐ2Ó3‰ô Ð3Ð5Ó6ˆØ ÐÛˆØˆÜ�dœH×%Ñ%Ü%:×%LÑ%LÈTÓ%RÐ"à&Ñ2Ü+¨DÓ1Ñ=à5×DÑDÀTÓJ�Ø×&Ñ& |Ö4ñ ð ×ÑÐ4Õ5øô+ ó Ø×#Ñ# AÔ&Üûðüs.   ‚C/ˆC ˜B/C/Ã
C,ÃC'Ã"C/Ã'C,Ã,C/c                ór  • [         R                  U R                  5      nUc  g [        U R                  5      nUc  g [	        U5      u  p4[        U R                  U R                  5      nUc  Ub  [        R                  " S5      eg Uc!  UR                  5       nUR                  5       nOaUnU Vs/ sHS  nX…;   a  XX   OF[        R                  " S [        R                  R                  SU< SSR                  U5       S3S9S9PMU     nnU R                  R!                  ["        R$                  5        ['        U R                  5      n	U=(       d    U	n
[)        U5      S:H  =(       a    [+        [        S	5      nU R-                  ["        R$                  UU(       a  [        R.                  4OUS
U
S9  g s  snf )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œ   )rl  )Úmarksé   ÚHIDDEN_PARAMT)rt   Úindirectrp   )r"  r(  Ú
definitionr„  Ú_parse_asyncio_markerr¹   rP   rF   r¡   ÚvaluesÚkeysÚparamrn  Úskipr    r?  r   rC  r7   rÊ   Úlenr�   Úparametrizerš  )Úmetafuncr•  Úasyncio_markerÚmarker_loop_scopeÚmarker_selected_factory_namesÚhook_factoriesÚfactory_paramsÚfactory_idsru   rR  rq   Úhide_ids               r>   Úpytest_generate_testsr¬  Ö  sÈ  € ä2×DÑDØ×ÑóÐð Ñ%Øä,¨X×-@Ñ-@ÓA€NØÑØÜ7LØó8Ñ4Ðô 2°(·/±/À8×CVÑCVÓW€NØÑØ(Ñ4Ü×#Ò#ðEóð ð 	ð %Ñ,Ø'×.Ñ.Ó0ˆØ$×)Ñ)Ó+‰ð 4ˆñ  6ó
ñ 6�ð Ó)ð Ò$ä—\’\ØÜ Ÿ+™+×*Ñ*à+¨D©8ð 4 à $§	¡	¨.Ó 9Ð:¸!ð=ð +ð ñ	òñ 6ð 	ð 
ð" ×Ñ× Ñ Ô!6×!?Ñ!?Ô@Ü5°h·o±oÓFÐØ"×8Ð&8€Jä�+Ó !Ñ#×G¬´¸Ó(G€GØ×ÑÜ×&Ñ&ØÞ&-ŒV× Ñ Ñ"°;ØØð ò ùò-
s   Â1AF4c              #  ó®   #   •  [        5       nXL a  S v •  g [        U 5         S v •  [        U5        g ! [         a    S n N3f = f! [        U5        f = f7frL   )Ú_get_event_loop_no_warnÚRuntimeErrorÚ_set_event_loop)ÚloopÚold_loops     r>   rß   rß     sX   é € ðÜ*Ó,ˆð ÒÛØÜ�DÔð"Ûä˜Õ!øô ó ØŠðûô 	˜Õ!üs:   ‚A„
3 ŽA£A §A³A¿AÁAÁAÁAÁAc              #  óv   #   • [        5       n[        U 5         S v •  [        U5        g ! [        U5        f = f7frL   )Ú_get_event_loop_policyÚ_set_event_loop_policy)ÚpolicyÚold_loop_policys     r>   Ú_temporary_event_loop_policyr¸  &  s0   é € ô -Ó.€OÜ˜6Ô"ð0Ûä˜Õ/øÔ˜Õ/üs   ‚9™) �9©6¶9c                 óÂ   • [         R                  " 5          [         R                  " S[        5        [        R
                  " 5       sS S S 5        $ ! , (       d  f       g = f©NÚignore)rÁ   Úcatch_warningsÚsimplefilterÚDeprecationWarningrW   Úget_event_loop_policyr6   r=   r>   r´  r´  2  s7   € Ü	×	 Ò	 Õ	"Ü×Ò˜hÔ(:Ô;Ü×,Ò,Ó.÷ 
#×	"×	"ús   –0AÁ
Ac                óÄ   • [         R                  " 5          [         R                  " S[        5        [        R
                  " U 5        S S S 5        g ! , (       d  f       g = frº  )rÁ   r¼  r½  r¾  rW   Úset_event_loop_policy©r¶  s    r>   rµ  rµ  8  s9   € Ü	×	 Ò	 Õ	"Ü×Ò˜hÔ(:Ô;Ü×%Ò% fÔ-÷ 
#×	"Ö	"úó   –2AÁ
Ac                óú   • [         R                  " 5          [         R                  " S[        5        U b  U R	                  5       sS S S 5        $ [
        R                  " 5       sS S S 5        $ ! , (       d  f       g = frº  )rÁ   r¼  r½  r¾  Úget_event_looprW   rÂ  s    r>   r®  r®  >  sU   € ô 
×	 Ò	 Õ	"Ü×Ò˜hÔ(:Ô;ØÑØ×(Ñ(Ó*÷ 
#Ñ	"ô
 ×)Ò)Ó+÷ 
#×	"×	"ús   –.A,ÁA,Á,
A:c                óÄ   • [         R                  " 5          [         R                  " S[        5        [        R
                  " U 5        S S S 5        g ! , (       d  f       g = frº  )rÁ   r¼  r½  r¾  rW   Úset_event_loop)r±  s    r>   r°  r°  I  s9   € Ü	×	 Ò	 Õ	"Ü×Ò˜hÔ(:Ô;Ü×Ò˜tÔ$÷ 
#×	"Ö	"úrÃ  )rÈ   r‡  c           
   #  ó$  #   • U R                  S5      bö  [        U 5      (       a½  [        U R                  5      nU R                  R
                  R                  5        H  u  p#US   R                  nU[        R                  :X  d  M*  [        U5      (       d  M<  [        U5      (       a  MN  [        R                  " [        SU R                  < SU< S35      SS9  M�     O)U R                  [         R"                  " S	U  S
35      5        Sv •  g7f)z-Pytest hook called before a test case is run.rW   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.r™  )Ú
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'.)r0  Úis_async_testr¥   rP   r3  Úname2fixturedefsrµ   rÐ   r@   rE   r“   r‹   rÁ   rÂ   r"   ru   rF   ÚPytestWarning)Ú
pyfuncitemrX   ÚfixnameÚfixturesrÐ   s        r>   Úpytest_pyfunc_callrÑ  O  sù   é € ð ×$Ñ$ YÓ/Ñ;Ü˜×$Ñ$Ü,¨Z×->Ñ->Ó?ˆLØ%/×%<Ñ%<×%MÑ%M×%SÑ%SÖ%UÑ!�ð   ‘|×(Ñ(�à ¤D§K¡KÕ/Ü1°$×7Ó7Ü8¸×>Ó>ä—M’MÜ0Ø+¨J¯O©OÑ+>ð ?/à&™kð *.ð.óð $%ôò &Vð4 �O‰OÜ×$Ò$Ø 
˜|ð ,Gð Góôó 
Øùs   ‚BDÂDÂDÂ,A$Dc                óN   ^ ^^• [         R                  " T 5      UU U4S j5       nU$ )z\
Return a sync wrapper around a coroutine executing it in the
specified runner and context.
c                 ó6   >• T" U 0 UD6nTR                  UTS9  g )Nrö   r   )râ   r}   Úcoror÷   rÐ   r×   s      €€€r>   r~   Ú%_synchronize_coroutine.<locals>.inner†  s"   ø€ á�TÐ$˜VÑ$ˆØ�
‰
�4 ˆ
Ò)r=   rå   )rÐ   r×   r÷   r~   s   ``` r>   rI  rI  |  s'   ú€ ô ‡_‚_�TÓö*ó ð*ð €Lr=   )Úwrapperc              #  ó~  #   • U R                   S:X  aA  U R                  R                  [        :w  a#  [        R
                  " [        [        5      5        [        UR                  5      n[        U R                  5      (       d6  U[        R                  :X  a  S v •$ [        U R                  5      (       d  S v •$ UR                  R                  S5      n[        U R                  SS 5      =(       d    U=(       d    U R                   nSU S3nUR#                  U5      nUR%                  U5      nUR'                  [(        R*                  " U R,                  US95        [/        XU5      n[1        X„5        [2        R4                  " 5        n	U	R7                  U SU5        S v •n
S S S 5        U
$ ! , (       d  f       W
$ = f7f)NÚevent_loop_policyrd   rŽ   r=  r>  ©rØ   rÐ   )ÚargnamerÐ   r8   r7   rÁ   rÂ   r"   Ú._EVENT_LOOP_POLICY_FIXTURE_DEPRECATION_WARNINGr¥   rP   r‹   r@   rE   r“   rž   rˆ   rp   rB  Ú_get_active_fixturedefr	  r‚   ÚpartialÚfinishrÙ   r�   r   r÷   rK  )rÖ   rØ   rX   rR  rq   rE  r×   Úrunner_fixturedefÚsynchronizerrN  r�  s              r>   Úpytest_fixture_setuprá  Ž  sr  é € ð 	×ÑÐ1Ó1Ø�O‰O×&Ñ&¬(Ó2ä�ŠÜ$Ô%SÓTô	
ô % W§^¡^Ó4€LÜ'¨
¯©×8Ñ8Øœ4Ÿ;™;Ó&ò ˆNÜ(¨¯©×9Ñ9ÚˆNØ Ÿ™×.Ñ.Ð/SÓTÐä�
—‘ °Ó5÷ 	Ø÷	à×Ñð ð
 ˜J˜< ~Ð6ÐØ×$Ñ$Ð%6Ó7€Fà×6Ñ6Ð7HÓIÐØ×"Ñ"Ü×Ò˜*×+Ñ+°WÑ=ôô )¨¸WÓE€LÜ" <Ô<Ü	×	Ò	Ô	 !Ø	�	‰	�*˜f lÔ3Úˆ÷ 
ð Ð÷ 
Ô	ð Ðüs   ‚FF=Æ	F+Æ!
F=Æ+
F:Æ5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                óœ  • U R                   S:X  d   e[        U 5        SU R                  ;   aM  SU R                  ;   a  [        R                  " [
        5      e[        R                  " [        [        5      5        U R                  R                  S5      =(       d    U R                  R                  S5      nUb  US;   d   eU R                  R                  S5      nUc  US 4$ [        U[        5      (       d  [        U[        5      (       d  [        [        5      eU(       a  [!        S U 5       5      (       a  [        [        5      eX4$ )NrW   rp   rq   >   r-   r,   r+   r*   r.   Úloop_factoriesc              3  óf   #   • U H(  n[        U[        5      (       + =(       d    U(       + v •  M*     g 7frL   )r¨   r¬   )r˜   Úfactory_names     r>   rš   Ú(_parse_asyncio_marker.<locals>.<genexpr>Ü  s,   é € ð á(ˆLô �|¤SÓ)Ô)×=°Ô-=Ô=Ú(ùs   ‚/1)ru   Ú_validate_asyncio_markerr}   rF   r¡   Ú&_DUPLICATE_LOOP_SCOPE_DEFINITION_ERRORrÁ   rÂ   r"   Ú'_MARKER_SCOPE_KWARG_DEPRECATION_WARNINGr  r¨   r¬   r   rŸ   Ú_INVALID_LOOP_FACTORIES_KWARGr´   )r¥  rp   Ú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Ñ,NÜÔ6Ó7Ð7Þœ3ñ á(ó÷ ñ ô Ô6Ó7Ð7ØÐÐr=   c                ó¢   • U R                   (       d0  U R                  (       a-  [        U R                  5      1 Sk-
  (       a  Sn[        U5      eg g )N>   rp   rq   rã  zNmark.asyncio accepts only keyword arguments 'loop_scope' and 'loop_factories'.)râ   r}   r  rŸ   )r¥  rû   s     r>   rç  rç  ä  sI   € Ø××Ø××Ü�×%Ñ%Ó&Ò)R×Rð!ð 	ô ˜‹oÐð Sð 	r=   c                ó$   • U R                  S5      $ )Nrf   )rž   )rP   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                óP   • [         R                  " U SU  S3S9    SS j5       nU$ )Nr=  r>  )rp   ru   c              3  óú  #   • U n[        UR                  5      n[        U5         [        UUS9R	                  5       nUb  [        UR                  5       5         Uv •  [        R                  " 5          [        R                  " SS[        5         UR                  S S S 5        S S S 5        Ub  [        S 5        S S S 5        g ! [         a8    [        R                  " [        [        R                   " 5       -  [        5         N`f = f! , (       d  f       Nj= f! ["         a/  nUR                  [%        U5      XfR&                  5         S nAN¡S nAff = f! Ub  [        S 5        f f = f! , (       d  f       g = f7f)N)rÌ   Úloop_factoryr»  z$.*BaseEventLoop.shutdown_asyncgens.*)r©   rP   r¸  r&   Ú	__enter__r°  rà   rÁ   r¼  ÚfilterwarningsÚRuntimeWarningÚ__exit__r¯  rÂ   Ú_RUNNER_TEARDOWN_WARNINGÚ	tracebackÚ
format_excÚ	Exceptionrc   Ú__traceback__)rØ  rC  rØ   Únew_loop_policyÚ
debug_moder×   r£   s          r>   r>  Ú5_create_scoped_runner_fixture.<locals>._scoped_runner   s7  é € ð ,ˆÜ'¨¯©Ó7ˆ
Ü)¨/Õ:ÜØ Ø2ñ÷ ‰i‹kð ð %Ñ0Ü §¡Ó 1Ô2ð*Ø’ô ×,Ò,Õ.Ü×+Ò+Ø Ð"HÌ.ôðØŸ™¨¨d°DÔ9÷ /ð )Ñ4Ü# DÔ)÷3 ;Ð:øô$ (ó Ü ŸšÜ4´y×7KÒ7KÓ7MÑMÜ*öðú÷ /Õ.ûô ó =Ø—‘¤ Q£¨¯O©O×<Ñ<ûð=ûð )Ñ4Ü# DÕ)ð 5ú÷1 ;Õ:üsŽ   ‚#E;¥5E*ÁDÁEÁ4D	ÂCÂ%EÂ-E*Â;	E;Ã?DÄD	ÄDÄD	Ä	
D	ÄEÄ
EÄ$%EÅ	EÅEÅEÅE'Å'E*Å*
E8Å4E;)rØ   r   rT   zIterator[Runner])rF   ry   )rp   r>  s     r>   Ú_create_scoped_runner_fixturerý  ÿ  sI   € Ü‡^‚^ØØ���~Ð&ñð *ð  ð *ð 
ó	 *ó	ð *ðD Ðr=   r=  r>  r*   )rp   c                ó   • [        U SS 5      $ )Nr   r‡   rÙ  s    r>   rC  rC  /  s   € ä�7˜G TÓ*Ð*r=   )rp   rs   c                 ó   • [        5       $ )zDReturn an instance of the policy used to create asyncio event loops.)r´  r6   r=   r>   rØ  rØ  4  s   € ô "Ó#Ð#r=   c                ó"   • [        U [        5      $ )z4Returns whether a test item is a pytest-asyncio test)r¨   r"  r9  s    r>   rË  rË  :  s   € ä�dÔ1Ó2Ð2r=   c                óÐ   • [         R                  " [        R                  " U S95       nUR                  S5        UR	                  5       S   sSSS5        $ ! , (       d  f       g= f)z<Find an unused localhost port from 1024-65535 and return it.)rc   )z	127.0.0.1r   r™  N)Ú
contextlibÚclosingÚsocketÚbindÚgetsockname)Úsocket_typeÚsocks     r>   Ú_unused_portr	  ?  sE   € ä	×	Ò	œFŸMšM¨{Ñ;Ô	<ÀØ�	‰	Ð"Ô#Ø×ÑÓ! !Ñ$÷ 
=×	<×	<ús   ©$AÁ
A%c                 ó4   • [        [        R                  5      $ rL   )r	  r  ÚSOCK_STREAMr6   r=   r>   Úunused_tcp_portr  F  s   € äœ×*Ñ*Ó+Ð+r=   c                 ó4   • [        [        R                  5      $ rL   )r	  r  Ú
SOCK_DGRAMr6   r=   r>   Úunused_udp_portr  K  s   € äœ×)Ñ)Ó*Ð*r=   c                 ó(   ^• [        5       mU4S jn U $ )z9A factory function, producing different unused TCP ports.c                 óª   >• [        [        R                  5      n U T;   a!  [        [        R                  5      n U T;   a  M!  TR                  U 5        U $ ©zReturn an unused port.)r	  r  r  Úadd©ÚportÚproduceds    €r>   r®   Ú(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                 ó(   ^• [        5       mU4S jn U $ )z9A factory function, producing different unused UDP ports.c                 óª   >• [        [        R                  5      n U T;   a!  [        [        R                  5      n U T;   a  M!  TR                  U 5        U $ r  )r	  r  r  r  r  s    €r>   r®   Ú(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=   )rl   r    rm   r#   rT   rÿ   )rx   r€   rp   ú0_ScopeName | Callable[[str, Config], _ScopeName]rq   ú_ScopeName | Nonerr   úIterable[object] | Noners   ra   rt   úQIterable[str | float | int | bool | None] | Callable[[Any], object | None] | Noneru   ú
str | NonerT   r€   ).)rx   rÿ   rp   r   rq   r!  rr   r"  rs   ra   rt   r#  ru   r$  rT   z<Callable[[FixtureFunction[_P, _R]], FixtureFunction[_P, _R]])NN)rx   zFixtureFunction[_P, _R] | Nonerq   r!  r}   r   rT   zVFixtureFunction[_P, _R] | Callable[[FixtureFunction[_P, _R]], FixtureFunction[_P, _R]])rŠ   r   rT   ra   )rŠ   r   rq   r!  rT   rÿ   )rP   r   rT   r@   )rP   r   rT   ra   )rP   r   rQ   r   rT   zdict[str, LoopFactory] | None)rp   r$  r»   r¬   rT   rÿ   )rP   r   rT   rÿ   )rP   r   rT   z	list[str])rÖ   r   r×   r&   rØ   r   rT   r   )rx   úBCallable[SyncGenFixtureParams, Generator[SyncGenFixtureYieldType]]r×   r&   rT   r%  )rx   ú2Callable[SyncFixtureParams, SyncFixtureReturnType]r×   r&   rT   r&  )rx   zRCallable[AsyncGenFixtureParams, AsyncGeneratorType[AsyncGenFixtureYieldType, Any]]r×   r&   rØ   r   rT   z9Callable[AsyncGenFixtureParams, AsyncGenFixtureYieldType])rx   zMCallable[AsyncFixtureParams, CoroutineType[Any, Any, AsyncFixtureReturnType]]r×   r&   rØ   r   rT   z4Callable[AsyncFixtureParams, AsyncFixtureReturnType])r÷   úcontextvars.ContextrT   zCallable[[], None] | None)rQ   r   rT   zMark | None)rŽ  zpytest.Module | pytest.Classru   r¬   rŠ   ÚobjectrT   z$Generator[None, pluggy.Result, None])r¤  zpytest.MetafuncrT   rÿ   )r±  r   rT   úIterator[None])r¶  r)   rT   r)  )rT   r)   )r¶  r)   rT   rÿ   rL   )r¶  zAbstractEventLoopPolicy | NonerT   zasyncio.AbstractEventLoop)r±  zAbstractEventLoop | NonerT   rÿ   )rÎ  r   rT   úobject | None)rÐ   zCallable[..., CoroutineType]r×   zasyncio.Runnerr÷   r'  )rÖ   r   rT   r*  )r¥  r   rT   z.tuple[_ScopeName | None, Sequence[str] | None])r¥  r   rT   rÿ   )rP   r   rT   r   )rp   rY  rT   r   )rØ   r   rT   zLoopFactory | None)rQ   r   rT   zTypeIs[PytestAsyncioFunction])r  ÚintrT   r+  )rT   r+  )rT   zCallable[[], int])‹r;   Ú
__future__r   rW   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   ÚpluggyrF   Ú_pytest.fixturesr   Ú_pytest.scoper   r   r   r   r   r   r   r   r    r!   r"   r#   Úversion_infor&   Úbackports.asyncio.runnerr(   Útyping_extensionsr)   rY  r/   r1   ÚFixtureFunctionr2   Ú__annotations__rø  r4   r¬   ÚEnumr@   ÚHookspecMarkerrU   rH   rj   ro   ry   r‹   r�   r“   r¥   r©   r²   r¹   rÃ   r¾   rÇ   ÚhookimplrÎ   rÙ   rÚ   rÛ   rÔ   ræ   rç   rÕ   rì   rí   rÑ   r  r  rÒ   r  r"  rb  rh  rt  rx  r„  r–  r¬  Úcontextmanagerrß   r¸  r´  rµ  r®  r°  rÑ  rI  rá  rè  ré  rê  rÛ  r�  rç  rÊ   rõ  rý  rp   r—   ÚglobalsrC  rØ  rË  r	  r  r  r  r  r6   r=   r>   Ú<module>r?     sÆ  ðÚ $å "ã Û Û Û Û Û Û Û 
Û Û Ý %÷
÷ 
õ 
÷ 4÷÷ ñ ó Û Ý 5Ý ÷÷ ÷ ñ ð ×Ñ�wÓÞå/à×Ñ�wÓÞå(æõ 0àÐHÑI€
ÙˆT˜ 3™¨-¸Ñ*<Ñ<Ñ=€Ùˆtƒ_€Ø˜2˜r˜6Ñ"€Ø! "Ð&7Ð"7Ñ8€ˆYÓ 8ô=˜ô =ôˆ3�—	‘	ô ð
 × Ò  Ó*€÷"ñ "ðÐ ô'ð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=   