Ë
    V.jSý  ã            
      óÒ  — d Z ddlmZ ddlZddlmZ ddlmZ ddlZddlZddl	Z	ddl
mZ ddlZddlZddlZddlmZ ddlZddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl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$ ddl#m%Z% ddl&m'Z' ddl&m(Z( ddl&m)Z) ddl*m+Z+ ddl,m-Z- ddl,m.Z. ddl,m/Z/ ddl,m0Z0 dd l,m1Z1 dd!l,m2Z2 dd"l,m3Z3 dd#l,m4Z4 dd$l,m5Z5 dd%l,m6Z6 dd&l7m8Z8 dd'l7m9Z9 dd(l:m;Z; dd)l<m=Z= dd*l>m?Z? dd+l>m@Z@ dd,l>mAZA dd-l>mBZB dd.lCmDZD dd/lEmFZF dd0lEmGZG dd1lHmIZI dd2lHmJZJ dd3lHmKZK dd4lHmLZL dd5lMmNZN dd6lMmOZO dd7lPmQZQ dd8lPmRZR dd9lPmSZS dd:lPmTZT dd;lUmVZV dd<lUmWZW dd=lXmYZY dd>lZm[Z[ dd?lZm\Z\ dd@lZm]Z] erddAl^m_Z_ dodB„Z`dpdD„ZadqdE„ZbdrdF„Zc e9dG¬H«      dsdJ„«       Zd	 	 	 	 	 	 dtdK„ZedudL„ZfdvdM„ZgdwdO„Zh e9dG¬H«      	 	 	 	 	 	 	 	 dxdP„«       Zi G dQ„ dRe"jÔ                  «      Zk G dS„ dT«      ZlemjÝ                   em«        eo ejà                  dU«      «      h dV£ eoel«       eo el«       «      «      Zq[l G dW„ dXeke"jä                  ejæ                  «      Zt	 	 	 	 dydY„Zu G dZ„ dNe"jì                  et«      Zw G d[„ d\e"jð                  «      Zydzd]„Zzd{d^„Z{ G d_„ d`et«      Z|d|da„Z}d|db„Z~e ejþ                  dG¬c«       G dd„ de«      «       «       Z€e ejþ                  dG¬c«       G df„ dg«      «       «       Z�d}dh„Z‚ eYeeƒe?e   f      «       Z„e G di„ dC«      «       Z…	 	 	 	 	 	 	 	 d~dj„Z†ddk„Z‡ G dl„ dIeke"�j                  «      Z‰ G dm„ dne‰«      ZŠy)€z7Python test discovery, setup and run of test functions.é    )ÚannotationsN)ÚCounter)Údefaultdict)Úpartial)ÚPath)ÚAny)ÚCallable)ÚDict)Úfinal)Ú	Generator)ÚIterable)ÚIterator)ÚLiteral)ÚMapping)ÚPattern)ÚSequence)ÚTYPE_CHECKING)Úfixtures)Únodes)Úfilter_traceback)Úgetfslineno)ÚExceptionInfo)ÚTerminalRepr)Ú	Traceback)Úsaferepr)Úascii_escaped)Úget_default_arg_names)Úget_real_func)Ú	getimfunc)Úis_async_function)Úis_generator)ÚLEGACY_PATH)ÚNOTSET©Úsafe_getattr)Úsafe_isclass)ÚConfig)Úhookimpl)ÚParser)Úcheck_ispytest)Ú
FixtureDef)ÚFixtureRequest)ÚFuncFixtureInfo)Úget_scope_node)ÚSession)ÚMARK_GEN)ÚParameterSet)Úget_unpacked_marks)ÚMark)ÚMarkDecorator)Únormalize_mark_list)Úfail)Úskip©Ú
fnmatch_ex)Úimport_path)ÚImportPathMismatchError)Úscandir)Ú
_ScopeName)ÚScope)ÚStashKey)ÚPytestCollectionWarning)ÚPytestReturnNotNoneWarning)ÚPytestUnhandledCoroutineWarning)ÚSelfc                ó´   — | j                  ddddgd¬«       | j                  dddgd	¬«       | j                  d
ddgd¬«       | j                  dddd¬«       y )NÚpython_filesÚargsz	test_*.pyz	*_test.pyz9Glob-style file patterns for Python test module discovery)ÚtypeÚdefaultÚhelpÚpython_classesÚTestz6Prefixes or glob names for Python test class discoveryÚpython_functionsÚtestzDPrefixes or glob names for Python test function and method discoveryÚDdisable_test_id_escaping_and_forfeit_all_rights_to_community_supportÚboolFzcDisable string escape non-ASCII characters, might cause unwanted side effects(use at your own risk))Úaddini)Úparsers    úPC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\_pytest/python.pyÚpytest_addoptionrS   T   s‡   € Ø
‡M�MØØà˜kÐ*ØHð ô ð ‡M�MØØØ�ØEð	 ô ð ‡M�MØØØ�ØSð	 ô ð ‡M�MØNØØð-ð	 õ ó    ÚMetafuncc                óš   — | j                   j                  d¬«      D ],  } | j                  |j                  i |j                  ¤d|i¤Ž Œ. y )NÚparametrize©ÚnameÚ_param_mark)Ú
definitionÚiter_markersrW   rF   Úkwargs)ÚmetafuncÚmarkers     rR   Úpytest_generate_testsr`   q   sC   € Ø×%Ñ%×2Ñ2¸Ð2ÖFˆØˆ×Ñ˜fŸk™kÐO¨V¯]©]ÑOÈÔOñ GrT   c                óL   — | j                  dd«       | j                  dd«       y )NÚmarkersaå  parametrize(argnames, argvalues): call a test function multiple times passing in different arguments in turn. argvalues generally needs to be a list of values if argnames specifies only one name or a list of tuples of values if argnames specifies multiple names. Example: @parametrize('arg1', [1,2]) would lead to two calls of the decorated test function, one with arg1=1 and another with arg1=2.see https://docs.pytest.org/en/stable/how-to/parametrize.html for more info and examples.z¯usefixtures(fixturename1, fixturename2, ...): mark tests as needing all of the specified fixtures. see https://docs.pytest.org/en/stable/explanation/fixtures.html#usefixtures )Úaddinivalue_line)Úconfigs    rR   Úpytest_configurere   v   s1   € Ø
×ÑØð	ô
ð ×ÑØð	SõrT   c                ó¶   — d}|dz  }|dz  }|dz  }|dz  }|dz  }|dz  }t        j                  t        |j                  | «      «      «       t	        d¬	«       y )
NzFasync def functions are not natively supported and have been skipped.
zMYou need to install a suitable plugin for your async framework, for example:
z
  - anyio
z  - pytest-asyncio
z  - pytest-tornasync
z  - pytest-trio
z  - pytest-twistedz?async def function and no async plugin installed (see warnings))Úreason)ÚwarningsÚwarnrB   Úformatr7   )ÚnodeidÚmsgs     rR   Úasync_warn_and_skiprm   Š   sp   € Ø
S€CØØXñ€Cð ˆ=Ñ€CØÐ!Ñ!€CØÐ#Ñ#€CØÐÑ€CØÐÑ€CÜ‡M�MÔ1°#·*±*¸VÓ2DÓEÔFÜÐQÖRrT   T)ÚtrylastÚFunctionc           	     óš  — | j                   }t        |«      rt        | j                  «       | j                  }| j
                  j                  D �ci c]  }|||   “Œ
 }} |di |¤Ž}t        |d«      st        |d«      rt        | j                  «       y|�/t        j                  t        d| j                  › d|›d�«      «       yc c}w )NÚ	__await__Ú	__aiter__zExpected None, but z
 returned zj, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?T© )Úobjr    rm   rk   ÚfuncargsÚ_fixtureinfoÚargnamesÚhasattrrh   ri   rA   )Ú
pyfuncitemÚtestfunctionru   ÚargÚtestargsÚresults         rR   Úpytest_pyfunc_callr~   ˜   sÒ   € à—>‘>€LÜ˜Ô&Ü˜J×-Ñ-Ô.Ø×"Ñ"€HØ.8×.EÑ.E×.NÒ.NÓOÑ.N s��X˜c‘]Ñ"Ð.N€HÐOÙÑ%˜HÑ%€FÜˆv�{Ô#¤w¨v°{Ô'CÜ˜J×-Ñ-Ô.ð ð 
Ð	Ü�‰Ü&Ø% j×&7Ñ&7Ð%8¸
À6À*ð M_ð _óô	
ð ùò Ps   ÁCc                ó€   — | dz  }	 |j                  «       }|rt        j                  || ¬«      S y # t        $ r Y y w xY w)Nú__init__.py©Úpath)Úis_fileÚPermissionErrorÚPackageÚfrom_parent)r‚   ÚparentÚpkginitÚhas_pkginits       rR   Úpytest_collect_directoryrŠ   ¬   sQ   € ð �]Ñ"€GðØ—o‘oÓ'ˆñ Ü×"Ñ" 6°Ð"Ó5Ð5Øøô ò áðús   ‡1 ±	=¼=c                ó  — | j                   dk(  rq|j                  j                  | «      s&t        | |j                  j                  d«      «      sy |j                  j                  | «      }|j                  | |¬«      }|S y )Nz.pyrE   ©Úmodule_pathr‡   )ÚsuffixÚsessionÚ
isinitpathÚpath_matches_patternsrd   ÚgetiniÚgethookproxyÚpytest_pycollect_makemodule)Ú	file_pathr‡   ÚihookÚmodules       rR   Úpytest_collect_filer˜   º   s{   € Ø×Ñ˜5Ò Ø�~‰~×(Ñ(¨Ô3Ü(Ø˜6Ÿ=™=×/Ñ/°Ó?ôð Ø—‘×+Ñ+¨IÓ6ˆØ×:Ñ:Ø!¨&ð ;ó 
ˆð ˆØrT   c                ó,   ‡ — t        ˆ fd„|D «       «      S )zKReturn whether path matches any of the patterns in the list of globs given.c              3  ó6   •K  — | ]  }t        |‰«      –— Œ y ­w©Nr8   )Ú.0Úpatternr‚   s     €rR   Ú	<genexpr>z(path_matches_patterns.<locals>.<genexpr>Ë   s   øè ø€ ÐA¹¨WŒz˜' 4×(¹ùs   ƒ)Úany)r‚   Úpatternss   ` rR   r‘   r‘   É   s   ø€ äÓA¹ÓAÓAÐArT   ÚModulec                ó0   — t         j                  || ¬«      S )Nr�   )r¡   r†   rŒ   s     rR   r”   r”   Î   s   € Ü×Ñ˜f¨;ÐÓ7Ð7rT   c                ó  — t        | t        t        f«      sJ t        | «      «       ‚t	        |«      r+| j                  ||«      rt        j                  | ||¬«      S y | j                  ||«      �rt        |d|«      }t        j                  |«      s_t        j                  t        |«      «      sAt        |«      \  }}t        j                  t        d|›d�«      d t!        |«      |dz   ¬«       y t        |dd«      r…t#        |«      r_t$        j                  | |¬	«      }d
|› d�}|j'                  t)        j*                  d|¬«      «       |j-                  t        |«      «       |S t/        | j1                  ||«      «      S y )N)rY   rt   Ú__func__zcannot collect z because it is not a function.é   )ÚmessageÚcategoryÚfilenameÚlinenoÚ__test__TrX   z)yield tests were removed in pytest 4.0 - z will be ignoredF)Úrunrg   )Ú
isinstanceÚClassr¡   rG   r&   Úistestclassr†   ÚistestfunctionÚgetattrÚinspectÚ
isfunctionr   r   rh   Úwarn_explicitr@   Ústrr!   ro   Ú
add_markerr0   Úxfailri   ÚlistÚ_genfunctions)Ú	collectorrY   rt   r¨   r©   Úresrg   s          rR   Úpytest_pycollect_makeitemr»   Ò   sj  € ô �i¤%¬ Ô1ÐB´4¸	³?ÓBÐ1ä�CÔØ× Ñ   dÔ+Ü×$Ñ$ Y°T¸sÐ$ÓCÐCð8 ð7 
×	!Ñ	! # tÕ	,ä�c˜: sÓ+ˆô ×"Ñ" 3Ô'¬7×+=Ñ+=¼mÈCÓ>PÔ+QÜ*¨3Ó/ÑˆH�fÜ×"Ñ"Ü/Ø% d XÐ-KÐLóð Ü˜X›Ø ‘zõð& ô �S˜* dÔ+Ü˜CÔ Ü×*Ñ*¨9¸4Ð*Ó@�à?À¸vÐEUÐVð ð —‘œxŸ~™~°%ÀÔGÔHØ—‘Ô0°Ó8Ô9Ø�
ä˜I×3Ñ3°D¸#Ó>Ó?Ð?ØrT   c                  ó�   — e Zd ZdZdZed„ «       Zed„ «       Zed„ «       Zed„ «       Z	e	j                  d„ «       Z	d„ Zddd	„Zdd
„Zy)Ú
PyobjMixinz¡this mix-in inherits from Node to carry over the typing information

    as its intended to always mix in before a node
    its position in the mro is unaffectedTc                óL   — | j                  t        «      }|�|j                  S dS )z@Python module object this node was collected from (can be None).N)Ú	getparentr¡   rt   ©ÚselfÚnodes     rR   r—   zPyobjMixin.module  s&   € ð �~‰~œfÓ%ˆØÐ+ˆt�x‰xÐ5°Ð5rT   c                óL   — | j                  t        «      }|�|j                  S dS )z?Python class object this node was collected from (can be None).N)r¿   r­   rt   rÀ   s     rR   ÚclszPyobjMixin.cls  s&   € ð �~‰~œeÓ$ˆØÐ+ˆt�x‰xÐ5°Ð5rT   c                 ó   — y)z§Python instance object the function is bound to.

        Returns None if not a test method, e.g. for a standalone test function,
        a class or a module.
        Nrs   ©rÁ   s    rR   ÚinstancezPyobjMixin.instance  s   € ð rT   c                ó  — t        | dd«      }|€}| j                  «       x| _        }| j                  rZ| j                  j                  t        | j                  «      «       | j                  j                  d„ | j                  D «       «       |S )zUnderlying Python object.Ú_objNc              3  ó8   K  — | ]  }|j                   |f–— Œ y ­wr›   rX   ©rœ   Úmarks     rR   rž   z!PyobjMixin.obj.<locals>.<genexpr>#  s   è ø€ Ð$TÑCS¸4 d§i¡i°Ô%6ÑCSùó   ‚)
r°   Ú_getobjrÉ   Ú_ALLOW_MARKERSÚown_markersÚextendr2   rt   ÚkeywordsÚupdate©rÁ   rt   s     rR   rt   zPyobjMixin.obj  sw   € ô �d˜F DÓ)ˆØˆ;Ø"Ÿl™l›nÐ,ˆDŒI˜ð ×"Ò"Ø× Ñ ×'Ñ'Ô(:¸4¿8¹8Ó(DÔEð —‘×$Ñ$Ñ$TÀ4×CSÒCSÓ$TÔTØˆ
rT   c                ó   — || _         y r›   )rÉ   )rÁ   Úvalues     rR   rt   zPyobjMixin.obj&  s	   € àˆ�	rT   c                óv   — | j                   €J ‚| j                   j                  }t        || j                  «      S )zCGet the underlying Python object. May be overwritten by subclasses.)r‡   rt   r°   rY   rÔ   s     rR   rÎ   zPyobjMixin._getobj*  s2   € ð �{‰{Ð&Ð&Ð&Ø�k‰k�o‰oˆÜ�s˜DŸI™IÓ&Ð&rT   c                ó>  — g }| j                  «       D ]h  }|j                  }t        |t        «      r9t        j
                  j                  |«      d   }|r|r|j                  |«        n|j                  |«       Œj |j                  «        dj                  |«      S )z5Return Python path relative to the containing module.r   Ú.)
Úiter_parentsrY   r¬   r¡   Úosr‚   ÚsplitextÚappendÚreverseÚjoin)rÁ   ÚstopatmoduleÚincludemoduleÚpartsrÂ   rY   s         rR   Ú
getmodpathzPyobjMixin.getmodpath1  s€   € àˆØ×%Ñ%Ö'ˆDØ—9‘9ˆDÜ˜$¤Ô'Ü—w‘w×'Ñ'¨Ó-¨aÑ0�ÙÙ$ØŸ™ TÔ*ÙØ�L‰L˜Õð (ð 	�‰ŒØ�x‰x˜‹ÐrT   c                ó\   — t        | j                  «      \  }}| j                  «       }|||fS r›   )r   rt   rã   )rÁ   r‚   r©   Úmodpaths       rR   Ú
reportinfozPyobjMixin.reportinfo@  s-   € ä" 4§8¡8Ó,‰ˆˆfØ—/‘/Ó#ˆØ�V˜WÐ$Ð$rT   N)TF)rà   rO   rá   rO   Úreturnr´   )rç   z.tuple[os.PathLike[str] | str, int | None, str])Ú__name__Ú
__module__Ú__qualname__Ú__doc__rÏ   Úpropertyr—   rÄ   rÇ   rt   ÚsetterrÎ   rã   ræ   rs   rT   rR   r½   r½   ù   sƒ   „ ñ-ð
 €Nàñ6ó ð6ð
 ñ6ó ð6ð
 ñó ðð ñó ðð 	‡Z�Zñó ðò'ôô%rT   r½   c                  ó   — e Zd Zy)Ú_EmptyClassN)rè   ré   rê   rs   rT   rR   rï   rï   K  s   … rT   rï   Úempty_module>   Ú__file__Ú
__cached__Ú__builtins__c                  óL   — e Zd Zd
d„Zdd„Zd
d„Zdd„Zdd„Zdd„Zdd„Z	dd„Z
y	)ÚPyCollectorc                ó&   — | j                  d|«      S )NrL   ©Ú_matches_prefix_or_glob_option©rÁ   rY   s     rR   ÚfuncnamefilterzPyCollector.funcnamefilter\  s   € Ø×2Ñ2Ð3EÀtÓLÐLrT   c                ó    — t        |dd«      du S )zgLook for the __test__ attribute, which is applied by the
        @nose.tools.istest decorator.
        rª   FTr$   rÔ   s     rR   Ú
isnosetestzPyCollector.isnosetest_  s   € ô ˜C ¨UÓ3°tÐ;Ð;rT   c                ó&   — | j                  d|«      S )NrJ   r÷   rù   s     rR   ÚclassnamefilterzPyCollector.classnamefilterh  s   € Ø×2Ñ2Ð3CÀTÓJÐJrT   c                óÖ   — | j                  |«      s| j                  |«      rGt        |t        t        f«      rt        |dd«      }t        |«      xr t        j                  |«      d u S y)Nr¤   F)	rú   rü   r¬   ÚstaticmethodÚclassmethodr%   Úcallabler   Úgetfixturemarker©rÁ   rt   rY   s      rR   r¯   zPyCollector.istestfunctionk  sZ   € Ø×Ñ˜tÔ$¨¯©¸Ô(<Ü˜#¤¬kÐ:Ô;ä" 3¨
°EÓ:�Ü˜C“=ÒK¤X×%>Ñ%>¸sÓ%CÀtÐ%KÐKàrT   c                óv   — | j                  |«      s| j                  |«      syt        j                  |«      ryy)NFT)rþ   rü   r±   Ú
isabstractr  s      rR   r®   zPyCollector.istestclasst  s2   € Ø×$Ñ$ TÔ*¨d¯o©o¸cÔ.BØÜ×Ñ˜cÔ"ØØrT   c                ó´   — | j                   j                  |«      D ]:  }|j                  |«      r yd|v s	d|v sd|v sŒ#t        j                  ||«      sŒ: y y)z`Check if the given name matches the prefix or glob-pattern defined
        in ini configuration.TÚ*Ú?Ú[F)rd   r’   Ú
startswithÚfnmatch)rÁ   Úoption_namerY   Úoptions       rR   rø   z*PyCollector._matches_prefix_or_glob_option{  s\   € ð —k‘k×(Ñ(¨Ö5ˆFØ�‰˜vÔ&Ùð ˜‘- 3¨&¡=°C¸6²MÄwÇÁØ�fõHñ ð 6ð rT   c                óÆ  — t        | j                  dd«      sg S t        | j                  di «      g}t        | j                  t        «      r6| j                  j                  D ]  }|j                  |j                  «       Œ t        «       }g }| j                  }|D ]Ÿ  }g }t        |j                  «       «      D ]n  \  }}	|t        v rŒ||v rŒ|j                  |«       |j                  | ||	¬«      }
|
€Œ<t        |
t        «      r|j                  |
«       Œ^|j                  |
«       Œp |j                  |«       Œ¡ g }t        |«      D ]  }|j                  |«       Œ |S )Nrª   TÚ__dict__)r¹   rY   rt   )r°   rt   r¬   rG   Ú__mro__rÝ   r  Úsetr–   r·   ÚitemsÚIGNORED_ATTRIBUTESÚaddr»   rÑ   Úreversed)rÁ   ÚdictsÚbaseclsÚseenÚdict_valuesr–   ÚdicÚvaluesrY   rt   rº   r}   s               rR   ÚcollectzPyCollector.collectŠ  sC  € Ü�t—x‘x ¨TÔ2ØˆIô ˜Ÿ™ :¨rÓ2Ð3ˆÜ�d—h‘h¤Ô%ØŸ8™8×+Ô+�Ø—‘˜W×-Ñ-Õ.ð ,ô
 ›ˆØ@BˆØ—
‘
ˆÛˆCØ9;ˆFô " #§)¡)£+Ö.‘	��cØÔ-Ñ-ØØ˜4‘<ØØ—‘˜”Ø×5Ñ5Ø"¨°3ð 6ó �ð �;ØÜ ¤TÔ*Ø—M‘M #Õ&à—M‘M #Õ&ð /ð ×Ñ˜vÕ&ð' ð. ˆÜ˜{Ö+ˆFØ�M‰M˜&Õ!ð ,àˆrT   c           	   #  ó:  K  — | j                  t        «      }|€J ‚|j                  }| j                  t        «      }|xr |j                  xs d }t        j                  | ||¬«      }|j                  }t        ||| j                  ||d¬«      }	g }
t        |d«      r|
j                  |j                  «       |�,t        |d«      r |
j                   |«       j                  «       | j                  j                  j                  |
t        |	¬«      «       |	j                  st         j                  | ||¬«      –— y |j#                  «        |	j                  D ]=  }|› d|j$                  › d�}t         j                  | ||||j$                  di|¬	«      –— Œ? y ­w)
N)rY   ÚcallobjT)r[   Úfixtureinford   rÄ   r—   Ú	_ispytestr`   )r^   )rY   r   r
  Ú])rY   Úcallspecr   rÒ   Úoriginalname)r¿   r¡   rt   r­   ÚFunctionDefinitionr†   rv   rU   rd   rx   rÝ   r`   r–   Ú
call_extraÚdictÚ_callsro   Úprune_dependency_treeÚid)rÁ   rY   ÚfuncobjÚ	modulecolr—   ÚclscolrÄ   r[   r   r^   Úmethodsr#  Úsubnames                rR   r¸   zPyCollector._genfunctionsµ  sx  è ø€ Ø—N‘N¤6Ó*ˆ	ØÐ$Ð$Ð$Ø—‘ˆØ—‘¤Ó&ˆØÒ#˜Ÿ™Ò+ tˆä'×3Ñ3°D¸tÈWÐ3ÓUˆ
Ø ×-Ñ-ˆô Ø!Ø#Ø—;‘;ØØØô
ˆð ˆÜ�6Ð2Ô3Ø�N‰N˜6×7Ñ7Ô8Øˆ?œw sÐ,CÔDØ�N‰N™3›5×6Ñ6Ô7Ø�
‰
×(Ñ(×3Ñ3°G¼TÈ8Ô=TÔUà�ŠÜ×&Ñ& t°$ÀKÐ&ÓPÓPð ×-Ñ-Ô/à$ŸOœO�Ø!˜F ! H§K¡K =°Ð2�Ü×*Ñ*ØØ Ø%Ø +Ø&Ÿk™k¨4Ð0Ø!%ð +ó ó ñ ,ùs   ‚FFN)rY   r´   rç   rO   ©rt   Úobjectrç   rO   )rt   r1  rY   r´   rç   rO   )r  r´   rY   r´   rç   rO   ©rç   z&Iterable[nodes.Item | nodes.Collector])rY   r´   rç   zIterator[Function])rè   ré   rê   rú   rü   rþ   r¯   r®   rø   r  r¸   rs   rT   rR   rõ   rõ   [  s-   „ óMó<óKóóóó)ôV.rT   rõ   c                óÎ  — |j                  d«      }	 t        | ||j                  |j                  d«      ¬«      }|j0                  j3                  |«       |S # t        $ rG}t
        j                  j                  t        j                  «       j                  d¬«      «      |‚d }~wt        $ r<}t
        j                  j                   dj                  |j                  Ž «      |‚d }~wt        $ r¯}t        j                  «       }|j                  «       dk  r$|j                   j#                  t$        «      |_        |j                   r|j                  d¬«      n|j'                  «       }t)        |«      }t
        j                  j                  d| › d	|› �«      |‚d }~wt*        j,                  $ r2}|j.                  r‚ t
        j                  j                  d
«      |‚d }~ww xY w)Nz--import-modeÚconsider_namespace_packages)ÚmodeÚrootr4  Úshort©Ústylezêimport file mismatch:
imported module {!r} has this __file__ attribute:
  {}
which is not the same as the test file we want to collect:
  {}
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modulesé   z)ImportError while importing test module 'zR'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
zïUsing pytest.skip outside of a test will skip the entire module. If that's your intention, pass `allow_module_level=True`. If you want to skip a specific test or an entire class, use the @pytest.mark.skip or @pytest.mark.skipif decorators.)Ú	getoptionr:   Úrootpathr’   ÚSyntaxErrorr   Ú	CollectorÚCollectErrorr   Úfrom_currentÚgetreprr;   rj   rF   ÚImportErrorÚget_verbosityÚ	tracebackÚfilterr   Úexconlyr´   r7   Ú	ExceptionÚallow_module_levelÚpluginmanagerÚconsider_module)r‚   rd   Ú
importmodeÚmodÚeÚexc_infoÚexc_reprÚformatted_tbs           rR   ÚimporttestmodulerQ  æ  sÕ  € ð
 ×!Ñ! /Ó2€Jð-ÜØØØ—‘Ø(.¯©Ð6SÓ(Tô	
ˆðZ ×Ñ×(Ñ(¨Ô-Ø€JøôQ ò Ü�o‰o×*Ñ*Ü×&Ñ&Ó(×0Ñ0°wÐ0Ó?ó
àð	ûô #ò 	Ü�o‰o×*Ñ*ð@ð 9÷ :@¹ÀÇÁðIó
ð ð	ûô ò Ü ×-Ñ-Ó/ˆØ×ÑÓ! AÒ%Ø!)×!3Ñ!3×!:Ñ!:Ô;KÓ!LˆHÔð ×!Ò!ð ×Ñ 7ÐÔ+à×!Ñ!Ó#ð 	ô
 ˜8“}ˆÜ�o‰o×*Ñ*Ø7¸°vð >ð ˆnðó
ð
 ð	ûô �>‰>ò Ø×ÒØÜ�o‰o×*Ñ*ðKó
ð
 ð	ûðús=   “(A Á	G$Á!AB#Â#G$Â/7C&Ã&G$Ã2B*FÆG$Æ2-GÇG$c                  ó:   ‡ — e Zd ZdZd„ Zdˆ fd„Zdd„Zdd„Zˆ xZS )r¡   z<Collector for test classes and functions in a Python module.c                óB   — t        | j                  | j                  «      S r›   )rQ  r‚   rd   rÆ   s    rR   rÎ   zModule._getobj!  s   € Ü §	¡	¨4¯;©;Ó7Ð7rT   c                óª   •— | j                  «        | j                  «        | j                  j                  j	                  | «       t
        ‰| �  «       S r›   )Ú_register_setup_module_fixtureÚ _register_setup_function_fixturer�   Ú_fixturemanagerÚparsefactoriesÚsuperr  ©rÁ   Ú	__class__s    €rR   r  zModule.collect$  s@   ø€ Ø×+Ñ+Ô-Ø×-Ñ-Ô/Ø�‰×$Ñ$×3Ñ3°DÔ9Ü‰w‰Ó Ð rT   c                ó  ‡‡— t        | j                  d«      Št        | j                  d«      Š‰€‰€yd	ˆˆfd„}| j                  j                  j	                  d| j                  j
                  › �|| j                  dd¬«       y)
a"  Register an autouse, module-scoped fixture for the collected module object
        that invokes setUpModule/tearDownModule if either or both are available.

        Using a fixture to invoke this methods ensures we play nicely and unsurprisingly with
        other fixtures (#517).
        ©ÚsetUpModuleÚsetup_module©ÚtearDownModuleÚteardown_moduleNc              3  óh   •K  — | j                   }‰�t        ‰|«       d –— ‰�t        ‰|«       y y ­wr›   )r—   Ú_call_with_optional_argument)Úrequestr—   r_  rb  s     €€rR   Úxunit_setup_module_fixturezIModule._register_setup_module_fixture.<locals>.xunit_setup_module_fixture;  s8   øè ø€ Ø—^‘^ˆFØÐ'Ü,¨\¸6ÔBÛØÐ*Ü,¨_¸fÕEð +ùs   ƒ/2Ú_xunit_setup_module_fixture_r—   T©rY   Úfuncrk   ÚscopeÚautouse©rç   zGenerator[None]©Ú_get_first_non_fixture_funcrt   r�   rW  Ú_register_fixturerè   rk   )rÁ   rf  r_  rb  s     @@rR   rU  z%Module._register_setup_module_fixture*  s‰   ù€ ô 3Ø�H‰HÐ5ó
ˆô 6Ø�H‰HÐ;ó
ˆð Ð OÐ$;Øö	Fð 	�‰×$Ñ$×6Ñ6à/°·±×0AÑ0AÐ/BÐCØ+Ø—;‘;ØØð 	7õ 	
rT   c                ó  ‡‡— t        | j                  d«      Št        | j                  d«      Š‰€‰€yd	ˆˆfd„}| j                  j                  j	                  d| j                  j
                  › �|| j                  dd¬«       y)
a*  Register an autouse, function-scoped fixture for the collected module object
        that invokes setup_function/teardown_function if either or both are available.

        Using a fixture to invoke this methods ensures we play nicely and unsurprisingly with
        other fixtures (#517).
        )Úsetup_function)Úteardown_functionNc              3  óŠ   •K  — | j                   �d –— y | j                  }‰�t        ‰|«       d –— ‰�t        ‰|«       y y ­wr›   )rÇ   Úfunctionrd  )re  rt  rq  rr  s     €€rR   Úxunit_setup_function_fixturezMModule._register_setup_function_fixture.<locals>.xunit_setup_function_fixtureZ  sO   øè ø€ Ø×ÑÐ+ó ØØ×'Ñ'ˆHØÐ)Ü,¨^¸XÔFÛØ Ð,Ü,Ð->ÀÕIð -ùs   ƒA AÚ_xunit_setup_function_fixture_rt  Trh  rl  rm  )rÁ   ru  rq  rr  s     @@rR   rV  z'Module._register_setup_function_fixtureL  s†   ù€ ô 5°T·X±XÐ?RÓSˆÜ7Ø�H‰HÐ,ó
Ðð Ð!Ð&7Ð&?Øö	Jð 	�‰×$Ñ$×6Ñ6à1°$·(±(×2CÑ2CÐ1DÐEØ-Ø—;‘;ØØð 	7õ 	
rT   r2  ©rç   ÚNone)	rè   ré   rê   rë   rÎ   r  rU  rV  Ú__classcell__©r[  s   @rR   r¡   r¡     s   ø„ ÙFò8õ!ó 
÷D"
rT   c                  óL   ‡ — e Zd ZdZ	 	 	 	 d	 	 	 	 	 	 	 dˆ fd„Zdd„Zdd„Zˆ xZS )	r…   a|  Collector for files and directories in a Python packages -- directories
    with an `__init__.py` file.

    .. note::

        Directories without an `__init__.py` file are instead collected by
        :class:`~pytest.Dir` by default. Both are :class:`~pytest.Directory`
        collectors.

    .. versionchanged:: 8.0

        Now inherits from :class:`~pytest.Directory`.
    c                óH   •— |j                   }t        ‰| �	  ||||||¬«       y )N)Úfspathr‚   r‡   rd   r�   rk   )r�   rY  Ú__init__)rÁ   r}  r‡   rd   r�   rk   r‚   r[  s          €rR   r~  zPackage.__init__€  s2   ø€ ð —.‘.ˆÜ‰ÑØØØØØØð 	õ 	
rT   c                óà   — t        | j                  dz  | j                  «      }t        |d«      }|�t	        ||«       t        |d«      }|�#t        t        ||«      }| j                  |«       y y )Nr€   r]  r`  )rQ  r‚   rd   rn  rd  r   Úaddfinalizer)rÁ   Úinit_modr_  rb  ri  s        rR   ÚsetupzPackage.setup–  sy   € Ü# D§I¡I°Ñ$=¸t¿{¹{ÓKˆô 3ØÐ5ó
ˆð Ð#Ü(¨°xÔ@ä5ØÐ;ó
ˆð Ð&ÜÔ7¸È(ÓSˆDØ×Ñ˜dÕ#ð 'rT   c              #  óD  K  — dd„}| j                   }| j                  }t        | j                  |«      D ]å  }|j	                  «       rat        |j                  «      }| j                  j                  |d¬«      s|j                  ||¬«      rŒY|j                  || ¬«      }|€Œo|–— Œt|j                  «       sŒ…t        |j                  «      }| j                  j                  |«      s|j                  ||¬«      rŒÉ|j                  || ¬«      }|E d {  –—†  Œç y 7 Œ­w)Nc                ó8   — | j                   dk7  | j                   fS )Nr€   rX   )Úentrys    rR   Úsort_keyz!Package.collect.<locals>.sort_keyª  s   € Ø—J‘J -Ñ/°·±Ð<Ð<rT   T)Úwith_parents)Úcollection_pathrd   )r‚   r‡   )r•   r‡   )r…  zos.DirEntry[str]rç   r1  )rd   r–   r<   r‚   Úis_dirr   r�   r�   Úpytest_ignore_collectrŠ   rƒ   r˜   )rÁ   r†  rd   r–   Údirentryr‚   ÚcolÚcolss           rR   r  zPackage.collect¨  sÿ   è ø€ ó	=ð —‘ˆð —
‘
ˆÜ §	¡	¨8Ö4ˆHØ�‰Ô Ü˜HŸM™MÓ*�Ø—|‘|×.Ñ.¨tÀ$Ð.ÔGØ×2Ñ2À4ÐPVÐ2ÔWØ Ø×4Ñ4¸$ÀtÐ4ÓL�Ø‘?Ø“Ià×!Ñ!Õ#Ü˜HŸM™MÓ*�Ø—|‘|×.Ñ.¨tÔ4Ø×2Ñ2À4ÐPVÐ2ÔWØ Ø×0Ñ0¸4ÈÐ0ÓM�Ø—‘ñ! 5ð   ús   ‚B!D Â$D Â:AD ÄDÄD )NNNN)r}  zLEGACY_PATH | Noner‡   únodes.Collectorr‚   zPath | Nonerç   rx  rw  r2  )rè   ré   rê   rë   r~  r‚  r  ry  rz  s   @rR   r…   r…   q  sK   ø„ ñð& ØØØ ð
à"ð
ð  ð
ð ð
ð 
õ
ó,$÷$ rT   r…   c                óˆ   — | j                   j                  }t        j                  | «      r|dz  }|r	 | |«       y | «        y)zyCall the given function with the given argument if func accepts one argument, otherwise
    calls func without arguments.r¥   N)Ú__code__Úco_argcountr±   Úismethod)ri  r{   Ú	arg_counts      rR   rd  rd  Ä  s9   € ð —‘×)Ñ)€IÜ×Ñ˜ÔØ�Q‰ˆ	ÙÙˆS�	á�rT   c                ód   — |D ]+  }t        | |d«      }|€Œt        j                  |«      �Œ)|c S  y)z§Return the attribute from the given object to be used as a setup/teardown
    xunit-style function, but only if not marked as a fixture to avoid calling it twice.
    N)r°   r   r  )rt   ÚnamesrY   Úmeths       rR   rn  rn  Ð  s<   € ó ˆÜ% c¨4°Ó6ˆØÑ¤× 9Ñ 9¸$Ó ?Ñ GØŠKð ð rT   c                  óV   ‡ — e Zd ZdZeddœd	ˆ fd„«       Zd„ Zd
ˆ fd„Zdd„Zdd„Z	ˆ xZ
S )r­   zBCollector for test methods (and nested classes) in a Python class.N©rt   c               ó(   •— t        ‰| �  d||dœ|¤ŽS )úThe public constructor.)rY   r‡   rs   ©rY  r†   )rÄ   r‡   rY   rt   Úkwr[  s        €rR   r†   zClass.from_parentÞ  s   ø€ ô ‰wÑ"ÐB¨°VÑB¸rÑBÐBrT   c                ó"   — | j                  «       S r›   r˜  rÆ   s    rR   ÚnewinstancezClass.newinstanceã  s   € Ø�x‰x‹zÐrT   c           	     óÆ  •— t        | j                  dd«      sg S t        | j                  «      rY| j                  €J ‚| j	                  t        d| j                  j                  ›d| j                  j                  › d�«      «       g S t        | j                  «      rY| j                  €J ‚| j	                  t        d| j                  j                  ›d| j                  j                  › d�«      «       g S | j                  «        | j                  «        | j                  j                  j                  | j                  «       | j                  «       t        ‰| �A  «       S )Nrª   Tzcannot collect test class z. because it has a __init__ constructor (from: Ú)z- because it has a __new__ constructor (from: )r%   rt   Úhasinitr‡   ri   r@   rè   rk   ÚhasnewÚ_register_setup_class_fixtureÚ_register_setup_method_fixturer�   rW  rX  rž  rY  r  rZ  s    €rR   r  zClass.collectæ  s2  ø€ Ü˜DŸH™H j°$Ô7ØˆIÜ�4—8‘8ÔØ—;‘;Ð*Ð*Ð*Ø�I‰IÜ'Ø0°·±×1BÑ1BÐ0Eð F3Ø37·;±;×3EÑ3EÐ2FÀaðIóôð ˆIÜ�D—H‘HÔØ—;‘;Ð*Ð*Ð*Ø�I‰IÜ'Ø0°·±×1BÑ1BÐ0Eð F2Ø26·+±+×2DÑ2DÐ1EÀQðHóôð ˆIà×*Ñ*Ô,Ø×+Ñ+Ô-à�‰×$Ñ$×3Ñ3°D×4DÑ4DÓ4FÈÏÉÔTä‰w‰Ó Ð rT   c                ó  ‡‡— t        | j                  d«      Št        | j                  d«      Š‰€‰€yd	ˆˆfd„}| j                  j                  j	                  d| j                  j
                  › �|| j                  dd¬«       y)
a!  Register an autouse, class scoped fixture into the collected class object
        that invokes setup_class/teardown_class if either or both are available.

        Using a fixture to invoke this methods ensures we play nicely and unsurprisingly with
        other fixtures (#517).
        )Úsetup_class)Úteardown_classNc              3  ó”   •K  — | j                   }‰�t        ‰«      }t        ||«       d –— ‰�t        ‰«      }t        ||«       y y ­wr›   )rÄ   r   rd  )re  rÄ   ri  r¦  r§  s      €€rR   Úxunit_setup_class_fixturezFClass._register_setup_class_fixture.<locals>.xunit_setup_class_fixture  sL   øè ø€ Ø—+‘+ˆCØÐ&Ü  Ó-�Ü,¨T°3Ô7ÛØÐ)Ü  Ó0�Ü,¨T°3Õ7ð *ùs   ƒAAÚ_xunit_setup_class_fixture_ÚclassTrh  rl  ©rn  rt   r�   rW  ro  rê   rk   )rÁ   r©  r¦  r§  s     @@rR   r£  z#Class._register_setup_class_fixture  s~   ù€ ô 2°$·(±(Ð<LÓMˆÜ4°T·X±XÐ?RÓSˆØÐ >Ð#9Øö	8ð 	�‰×$Ñ$×6Ñ6à.¨t¯x©x×/DÑ/DÐ.EÐFØ*Ø—;‘;ØØð 	7õ 	
rT   c                ó"  ‡‡‡‡— dŠt        | j                  ‰f«      ŠdŠt        | j                  ‰f«      Š‰€‰€yd	ˆˆˆˆfd„}| j                  j                  j	                  d| j                  j
                  › �|| j                  dd¬«       y)
a'  Register an autouse, function scoped fixture into the collected class object
        that invokes setup_method/teardown_method if either or both are available.

        Using a fixture to invoke these methods ensures we play nicely and unsurprisingly with
        other fixtures (#517).
        Úsetup_methodÚteardown_methodNc              3  ó°   •K  — | j                   }| j                  }‰�t        |‰«      }t        ||«       d –— ‰�t        |‰«      }t        ||«       y y ­wr›   )rÇ   rt  r°   rd  )re  rÇ   Úmethodri  r®  Ú
setup_namer¯  Úteardown_names       €€€€rR   Úxunit_setup_method_fixturezHClass._register_setup_method_fixture.<locals>.xunit_setup_method_fixture0  s]   øè ø€ Ø×'Ñ'ˆHØ×%Ñ%ˆFØÐ'Ü˜x¨Ó4�Ü,¨T°6Ô:ÛØÐ*Ü˜x¨Ó7�Ü,¨T°6Õ:ð +ùs   ƒAAÚ_xunit_setup_method_fixture_rt  Trh  rl  r¬  )rÁ   r´  r®  r²  r¯  r³  s     @@@@rR   r¤  z$Class._register_setup_method_fixture"  s�   û€ ð $ˆ
Ü2°4·8±8¸j¸]ÓKˆØ)ˆÜ5°d·h±hÀÐ@PÓQˆØÐ OÐ$;Ø÷		;ð 		;ð 	�‰×$Ñ$×6Ñ6à/°·±×0EÑ0EÐ/FÐGØ+Ø—;‘;ØØð 	7õ 	
rT   ©rç   rC   r2  rw  )rè   ré   rê   rë   r  r†   rž  r  r£  r¤  ry  rz  s   @rR   r­   r­   Û  s1   ø„ ÙLàØ.2ö Có ðCòõ!ó:
÷> 
rT   r­   c                óH   — t        | dd «      }|r|t        j                  k7  S y)Nr~  F)r°   r1  r~  )rt   Úinits     rR   r¡  r¡  E  s%   € Ü˜3 
¨DÓ1€DÙØ”v—‘Ñ&Ð&ØrT   c                óH   — t        | dd «      }|r|t        j                  k7  S y)NÚ__new__F)r°   r1  rº  )rt   Únews     rR   r¢  r¢  L  s%   € Ü˜#˜y¨$Ó/€CÙ
Ø”f—n‘nÑ$Ð$ØrT   )Úfrozenc                  ó¦   — e Zd ZU dZdZded<   ded<   ded<   d	ed
<   ded<   ded<   ded<   dd„Zdd„Zdd„Zdd„Z	dd„Z
dd„Zdd„Zed d„«       Zy)!ÚIdMakerzMake IDs for a parametrization.)rw   ÚparametersetsÚidfnÚidsrd   rk   Ú	func_nameúSequence[str]rw   úSequence[ParameterSet]r¿  z%Callable[[Any], object | None] | NonerÀ  zSequence[object | None] | NonerÁ  úConfig | Nonerd   ú
str | Nonerk   rÂ  c                ó
  — t        | j                  «       «      }t        |«      t        t        |«      «      k7  rŸt	        |«      }t        t        «      }t        |«      D ]w  \  }}||   dkD  sŒd}|r|d   j                  «       rd}|› |› ||   › �}|t        |«      v r&||xx   dz  cc<   |› |› ||   › �}|t        |«      v rŒ&|||<   ||xx   dz  cc<   Œy t        |«      t        t        |«      «      k(  s
J d|›�«       ‚|S )aÐ  Make a unique identifier for each ParameterSet, that may be used to
        identify the parametrization in a node ID.

        Format is <prm_1_token>-...-<prm_n_token>[counter], where prm_x_token is
        - user-provided id, if given
        - else an id derived from the value, applicable for certain types
        - else <argname><parameterset index>
        The counter suffix is appended only in case a string wouldn't be unique
        otherwise.
        r¥   Ú éÿÿÿÿÚ_zInternal error: resolved_ids=)	r·   Ú_resolve_idsÚlenr  r   r   ÚintÚ	enumerateÚisdigit)rÁ   Úresolved_idsÚ	id_countsÚid_suffixesÚindexr*  rŽ   Únew_ids           rR   Úmake_unique_parameterset_idsz$IdMaker.make_unique_parameterset_idsv  s,  € ô ˜D×-Ñ-Ó/Ó0ˆäˆ|Ó¤¤C¨Ó$5Ó 6Ò6ä Ó-ˆIä*5´cÓ*:ˆKä& |Ö4‘	��rØ˜R‘= 1Ó$Ø�FÙ˜b ™fŸn™nÔ.Ø!$˜Ø "˜t F 8¨K¸©OÐ+<Ð=�FØ ¤C¨Ó$5Ñ5Ø# B›¨1Ñ,›Ø$& 4¨ x°¸B±Ð/@Ð!A˜ð !¤C¨Ó$5Ò5ð +1�L Ñ'Ø “O qÑ(”Oð 5ô �<Ó ¤CÜ�Óó%
ò 
ð 	.à+˜l˜_Ð-ó	.ð 
ð ÐrT   c              #  ó   ‡ ‡K  — t        ‰ j                  «      D ]°  \  Š}|j                  �|j                  –— Œ!‰ j                  rI‰t	        ‰ j                  «      k  r1‰ j                  ‰   �"‰ j                  ‰ j                  ‰   ‰«      –— Œvdj                  ˆˆ fd„t        |j                  ‰ j                  «      D «       «      –— Œ² y­w)z;Resolve IDs for all ParameterSets (may contain duplicates).NÚ-c              3  óJ   •K  — | ]  \  }}‰j                  ||‰«      –— Œ y ­wr›   )Ú_idval)rœ   ÚvalÚargnameÚidxrÁ   s      €€rR   rž   z'IdMaker._resolve_ids.<locals>.<genexpr>¤  s*   øè ø€ ð á(O™˜˜Wð —K‘K  W¨c×2Ù(Oùs   ƒ #)
rÎ  r¿  r*  rÁ  rÌ  Ú_idval_from_value_requiredrß   Úzipr  rw   )rÁ   ÚparametersetrÜ  s   ` @rR   rË  zIdMaker._resolve_ids™  s¤   ùè ø€ ä!*¨4×+=Ñ+=Ö!>ÑˆC�Ø�‰Ð*à"—o‘oÓ%Ø—’˜c¤C¨¯©£MÒ1°d·h±h¸s±mÐ6Oà×5Ñ5°d·h±h¸s±mÀSÓIÓIð —h‘hô ä(+¨L×,?Ñ,?ÀÇÁÔ(Oóó ó ñ "?ùs   „C
Cc                óª   — | j                  |||«      }|�|S | j                  ||«      }|�|S | j                  |«      }|�|S | j                  ||«      S )z-Make an ID for a parameter in a ParameterSet.)Ú_idval_from_functionÚ_idval_from_hookÚ_idval_from_valueÚ_idval_from_argname)rÁ   rÚ  rÛ  rÜ  Úidvals        rR   rÙ  zIdMaker._idval©  sl   € à×)Ñ)¨#¨w¸Ó<ˆØÐØˆLØ×%Ñ% c¨7Ó3ˆØÐØˆLØ×&Ñ& sÓ+ˆØÐØˆLØ×'Ñ'¨°Ó5Ð5rT   c                ó
  — | j                   €y	 | j                  |«      }|€y| j                  |«      S # t        $ rE}| j                  �| j                  › d�nd}d}||j                  ||«      z   }t	        |«      |‚d}~ww xY w)zjTry to make an ID for a parameter in a ParameterSet using the
        user-provided id callable, if given.Nú: rÈ  zJerror raised while trying to determine id of parameter '{}' at position {})rÀ  rG  rk   rj   Ú
ValueErrorrã  )rÁ   rÚ  rÛ  rÜ  r*  rM  Úprefixrl   s           rR   rá  zIdMaker._idval_from_function¶  s‘   € ð �9‰9ÐØð	)Ø—‘˜3“ˆBð ˆ:ØØ×%Ñ% bÓ)Ð)øô ò 	)Ø+/¯;©;Ð+B˜Ÿ™�} BÑ'ÈˆFØ^ˆCØ˜3Ÿ:™: g¨sÓ3Ñ3ˆCÜ˜S“/ qÐ(ûð		)ús   �4 ´	B½A A=Á=Bc                ó„   — | j                   r4| j                   j                  j                  | j                   ||¬«      }|S y)zsTry to make an ID for a parameter in a ParameterSet by calling the
        :hook:`pytest_make_parametrize_id` hook.)rd   rÚ  rÛ  N)rd   ÚhookÚpytest_make_parametrize_id)rÁ   rÚ  rÛ  r*  s       rR   râ  zIdMaker._idval_from_hookÆ  s@   € ð �;Š;Ø!Ÿ[™[×-Ñ-×HÑHØ—{‘{¨°Wð Ió ˆBð ˆIØrT   c                ó°  — t        |t        t        f«      rt        || j                  «      S |� t        |t
        t        t        t        f«      rt        |«      S t        |t        «      rt        |j                  «      S |t        u r	 yt        |t        j                  «      rt        |«      S t        t        |dd«      t        «      rt        |d«      }|S y)zkTry to make an ID for a parameter in a ParameterSet from its value,
        if the value type is supported.Nrè   )r¬   r´   ÚbytesÚ_ascii_escaped_by_configrd   ÚfloatrÍ  rO   Úcomplexr   r   r�   r#   ÚenumÚEnumr°   )rÁ   rÚ  rY   s      rR   rã  zIdMaker._idval_from_valueÐ  s«   € ô �cœC¤˜<Ô(Ü+¨C°·±Ó=Ð=Øˆ[œJ s¬U´C¼¼wÐ,GÔHÜ�s“8ˆOÜ˜œWÔ%Ü  §¡Ó-Ð-Ø”F‰]àð ô ˜œTŸY™YÔ'Ü�s“8ˆOÜœ  Z°Ó6¼Ô<ä  ZÓ0ˆDØˆKØrT   c                ó   — | j                  |«      }|�|S | j                  �d| j                  › d�}n| j                  �d| j                  › d�}nd}|› dt        |«      › dt	        |«      ›d|› d�}t        |d	¬
«       y)zALike _idval_from_value(), but fails if the type is not supported.NúIn rç  rÈ  zids contains unsupported value z (type: z) at index zf. Supported types are: str, bytes, int, float, complex, bool, enum, regex or anything with a __name__.F©Úpytrace)rã  rÂ  rk   r   rG   r6   )rÁ   rÚ  rÜ  r*  ré  rl   s         rR   rÝ  z"IdMaker._idval_from_value_requiredä  sž   € à×#Ñ# CÓ(ˆØˆ>ØˆIð �>‰>Ð%Ø˜4Ÿ>™>Ð*¨"Ð-‰FØ�[‰[Ð$Ø˜4Ÿ;™;˜- rÐ*‰FàˆFàˆhÐ5´h¸s³m°_ÀHÌTÐRUËYÈMÐYdÐehÐdið jsð sð 	ô 	ˆS˜%Ö rT   c                ó0   — t        | «      t        |«      z   S )znMake an ID for a parameter in a ParameterSet from the argument name
        and the index of the ParameterSet.)r´   )rÛ  rÜ  s     rR   rä  zIdMaker._idval_from_argname÷  s   € ô �7‹|œc #›hÑ&Ð&rT   N)rç   ú	list[str])rç   úIterable[str])rÚ  r1  rÛ  r´   rÜ  rÍ  rç   r´   )rÚ  r1  rÛ  r´   rÜ  rÍ  rç   rÆ  )rÚ  r1  rÛ  r´   rç   rÆ  )rÚ  r1  rç   rÆ  )rÚ  r1  rÜ  rÍ  rç   r´   )rÛ  r´   rÜ  rÍ  rç   r´   )rè   ré   rê   rë   Ú	__slots__Ú__annotations__rÕ  rË  rÙ  rá  râ  rã  rÝ  r   rä  rs   rT   rR   r¾  r¾  S  sz   … ñ *ð€Ið Óà)Ó)ð 0Ó/à	'Ó'ð Óð Óð Óó!óFó 6ó*ó óó(!ð& ò'ó ñ'rT   r¾  c                  ó@  — e Zd ZU dZ ej
                  e¬«      Zded<    ej
                  e¬«      Z	ded<    ej
                  e¬«      Z
ded<    ej
                  e¬«      Zd	ed
<    ej
                  e¬«      Zded<   	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zdd„Zedd„«       Zy)Ú	CallSpec2zìA planned parameterized invocation of a test function.

    Calculated during collection for a given test function's Metafunc.
    Once collection is over, each callspec is turned into a single Item
    and stored in item.callspec.
    )Údefault_factoryzdict[str, object]Úparamszdict[str, int]ÚindiceszMapping[str, Scope]Ú
_arg2scoperÃ  Ú_idlistz
list[Mark]Úmarksc          
     óh  — | j                   j                  «       }| j                  j                  «       }t        | j                  «      }	t        ||«      D ]&  \  }
}|
|v rt        d|
›�«      ‚|||
<   |||
<   ||	|
<   Œ( t        |||	g | j                  ¢|‘g | j                  ¢t        |«      ¢¬«      S )Nzduplicate parametrization of )r   r  r  r  r  )r   Úcopyr  r'  r  rÞ  rè  rþ  r  r  r5   )rÁ   rw   Úvalsetr*  r  rj  Úparam_indexr   r  Ú	arg2scoper{   rÚ  s               rR   ÚsetmultizCallSpec2.setmulti  sÀ   € ð —‘×!Ñ!Ó#ˆØ—,‘,×#Ñ#Ó%ˆÜ˜Ÿ™Ó)ˆ	Ü˜H fÖ-‰HˆC�Ø�f‰}Ü Ð#@ÀÀÐ!HÓIÐIØˆF�3‰KØ&ˆG�C‰LØ"ˆI�cŠNð .ô ØØØ Ø'�d—l‘lÐ' BÐ'Ø<�D—J‘JÐ<Ô!4°UÓ!;Ð<ô
ð 	
rT   c                ó\   — 	 | j                   |   S # t        $ r}t        |«      |‚d }~ww xY wr›   )r   ÚKeyErrorrè  )rÁ   rY   rM  s      rR   ÚgetparamzCallSpec2.getparam/  s3   € ð	*Ø—;‘;˜tÑ$Ð$øÜò 	*Ü˜TÓ"¨Ð)ûð	*ús   ‚ ‘	+š&¦+c                ó8   — dj                  | j                  «      S )Nr×  )rß   r  rÆ   s    rR   r*  zCallSpec2.id5  s   € à�x‰x˜Ÿ™Ó%Ð%rT   N)rw   rú  r  zIterable[object]r*  r´   r  zIterable[Mark | MarkDecorator]rj  r>   r  rÍ  rç   rþ  )rY   r´   rç   r1  )rç   r´   )rè   ré   rê   rë   ÚdataclassesÚfieldr'  r   rü  r  r  Útupler  r·   r  r
  r  rì   r*  rs   rT   rR   rþ  rþ  þ  sâ   … ñð !2 × 1Ñ 1À$Ô G€FÐÓGà/˜k×/Ñ/ÀÔE€Gˆ^ÓEà&7 k×&7Ñ&7ÈÔ&M€JÐ#ÓMà.˜[×.Ñ.¸uÔE€Gˆ]ÓEà)˜×)Ñ)¸$Ô?€Eˆ:Ó?ð
ð  ð
ð !ð	
ð
 ð
ð .ð
ð ð
ð ð
ð 
ó
ó6*ð ò&ó ñ&rT   rþ  c                ó   — | j                   S r›   )Úparam)re  s    rR   Úget_direct_param_fixture_funcr  :  s   € Ø�=‰=ÐrT   c                  óÂ   — e Zd ZdZ	 	 dddœ	 	 	 	 	 	 	 	 	 dd„Z	 	 	 dddœ	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z	 	 	 	 	 	 	 	 	 	 dd„Z	 	 	 	 	 	 	 	 dd	„Z	 	 	 	 	 	 dd
„Z	 	 	 	 	 	 dd„Z	y)rU   zóObjects passed to the :hook:`pytest_generate_tests` hook.

    They help to inspect a test function and to generate tests according to
    test configuration or values specified in the class or module where a
    test function is defined.
    NF©r!  c               óÆ   — t        |«       || _        || _        || _        |j                  | _        |j                  | _        || _        |j                  | _
        g | _        y r›   )r*   r[   rd   r—   rt   rt  Únames_closureÚfixturenamesrÄ   Úname2fixturedefsÚ_arg2fixturedefsr(  )rÁ   r[   r   rd   rÄ   r—   r!  s          rR   r~  zMetafunc.__init__K  sd   € ô 	�yÔ!ð %ˆŒð ˆŒð ˆŒð #Ÿ™ˆŒð (×5Ñ5ˆÔð ˆŒà +× <Ñ <ˆÔð (*ˆ�rT   )rZ   c               ó¢  — t        j                  ||| j                  | j                  | j                  j
                  ¬«      \  }}~d|v rt        dd¬«       |�/t        j                  |d| j                  j                  › �¬«      }nt        || j                  |«      }| j                  ||«       |r&|j                  r|j                  j                  }	|	�|	}| j                  |||| j                  j
                  ¬«      }|r/|j                  r#	€!t         j#                  |j                  d	|«       d}
|t        j$                  urx| j                  j&                  }|€J ‚t)        ||«      }
|
€P|t        j*                  u rt-        |t.        «      sJ ‚|}
n)|t        j0                  u r|j2                  }
n
J d
|› �«       ‚|
€d}n"i }|
j4                  j7                  t8        |«      }| j;                  ||«      }|D ]O  }||   dk(  rŒ|�
||v r||   }n(t=        | j                  d|t>        |ddd¬«      }|�|||<   |g| j                  |<   ŒQ g }| j@                  xs tC        «       gD ]^  }tE        tG        ||«      «      D ]D  \  }\  }}|jI                  ||jJ                  ||jL                  ||¬«      }|jO                  |«       ŒF Œ` || _         y)aÝ  Add new invocations to the underlying test function using the list
        of argvalues for the given argnames. Parametrization is performed
        during the collection phase. If you need to setup expensive resources
        see about setting indirect to do it rather than at test setup time.

        Can be called multiple times per test function (but only on different
        argument names), in which case each call parametrizes all previous
        parametrizations, e.g.

        ::

            unparametrized:         t
            parametrize ["x", "y"]: t[x], t[y]
            parametrize [1, 2]:     t[x-1], t[x-2], t[y-1], t[y-2]

        :param argnames:
            A comma-separated string denoting one or more argument names, or
            a list/tuple of argument strings.

        :param argvalues:
            The list of argvalues determines how often a test is invoked with
            different argument values.

            If only one argname was specified argvalues is a list of values.
            If N argnames were specified, argvalues must be a list of
            N-tuples, where each tuple-element specifies a value for its
            respective argname.
        :type argvalues: Iterable[_pytest.mark.structures.ParameterSet | Sequence[object] | object]
        :param indirect:
            A list of arguments' names (subset of argnames) or a boolean.
            If True the list contains all names from the argnames. Each
            argvalue corresponding to an argname in this list will
            be passed as request.param to its respective argname fixture
            function so that it can perform more expensive setups during the
            setup phase of a test rather than at collection time.

        :param ids:
            Sequence of (or generator for) ids for ``argvalues``,
            or a callable to return part of the id for each argvalue.

            With sequences (and generators like ``itertools.count()``) the
            returned ids should be of type ``string``, ``int``, ``float``,
            ``bool``, or ``None``.
            They are mapped to the corresponding index in ``argvalues``.
            ``None`` means to use the auto-generated id.

            If it is a callable it will be called for each entry in
            ``argvalues``, and the return value is used as part of the
            auto-generated id for the whole set (where parts are joined with
            dashes ("-")).
            This is useful to provide more specific ids for certain items, e.g.
            dates.  Returning ``None`` will use an auto-generated id.

            If no ids are provided they will be generated automatically from
            the argvalues.

        :param scope:
            If specified it denotes the scope of the parameters.
            The scope is used for grouping tests by parameter instances.
            It will also override any fixture-function defined scope, allowing
            to set a dynamic scope using test context or configuration.
        )rk   re  zK'request' is a reserved name and cannot be used in @pytest.mark.parametrizeFrö  Nzparametrize() call in )ÚdescrÚ_param_ids_generatedzUnhandled missing scope: ÚindirectrÈ  T)rd   ÚbaseidrÛ  ri  rj  r   rÁ  r!  )rw   r  r*  r  rj  r  )(r1   Ú_for_parametrizert  rd   r[   rk   r6   r>   Ú	from_userrè   Ú_find_parametrized_scoper  Ú_validate_if_using_arg_namesÚ_param_ids_fromr  Ú_resolve_parameter_set_idsr1  Ú__setattr__ro   r‡   r.   r­   r¬   r¡   r…   r�   ÚstashÚ
setdefaultÚname2pseudofixturedef_keyÚ_resolve_args_directnessr+   r  r(  rþ  rÎ  rÞ  r
  r  r  rÝ   )rÁ   rw   Ú	argvaluesr  rÁ  rj  rZ   r¿  Úscope_Úgenerated_idsrÂ   r¹   Úname2pseudofixturedefrH   Úarg_directnessrÛ  Ú
fixturedefÚnewcallsr#  r  Úparam_idÚ	param_setÚnewcallspecs                          rR   rW   zMetafunc.parametrizen  sÿ  € ôP #/×"?Ñ"?ØØØ�M‰MØ�K‰KØ—?‘?×)Ñ)ô#
Ñˆ�-ð à˜Ñ ÜØ]Øõð
 ÐÜ—_‘_ØÐ5°d·m±m×6LÑ6LÐ5MÐNô‰Fô .¨h¸×8MÑ8MÈxÓXˆFà×)Ñ)¨(°HÔ=ñ ˜;×6Ò6Ø'×7Ñ7×LÑLˆMØÐ(Ø#�à×-Ñ-Ø�c˜=°·±×1GÑ1Gð .ó 
ˆñ
 ˜;×6Ò6¸=Ð;PÜ×Ñ˜{×:Ñ:Ð<RÐTWÔXð
 ˆð
 œŸ™Ñ'ØŸ™×.Ñ.ˆIØÐ(Ð(Ð(Ü! )¨VÓ4ˆDØˆ|ð œUŸ[™[Ñ(Ü% i´Ô8Ð8Ð8Ø$‘Dð œuŸ}™}Ñ,Ø$×,Ñ,‘DàEÐ$=¸e¸WÐ"EÓE˜5Øˆ<Ø$(Ñ!à24ˆGØ$(§J¡J×$9Ñ$9Ü)¨7ó%Ð!ð ×6Ñ6°xÀÓJˆÛˆGØ˜gÑ&¨*Ò4ØØ$Ð0°WÐ@UÑ5UØ2°7Ñ;‘
ä'ØŸ;™;ØØ#Ü6Ø ØØØ"ô	�
ð )Ð4Ø5?Ð)¨'Ñ2Ø.8¨\ˆD×!Ñ! 'Ò*ð%  ð. ˆØŸ™Ò4¬	« }Ò4ˆHÜ6?Ü�C˜Ó'ö7Ñ2�Ñ2˜h¨	ð '×/Ñ/Ø%Ø$×+Ñ+ØØ#Ÿ/™/Ø Ø +ð 0ó �ð —‘ Õ,ñ7ð 5ð ˆ�rT   c           	     ó  — |€d}d}n9t        |«      r|}d}n)d}| j                  ||| j                  j                  «      }t	        ||||| j
                  || j                  j                  ¬«      }|j                  «       S )a:  Resolve the actual ids for the given parameter sets.

        :param argnames:
            Argument names passed to ``parametrize()``.
        :param ids:
            The `ids` parameter of the ``parametrize()`` call (see docs).
        :param parametersets:
            The parameter sets, each containing a set of values corresponding
            to ``argnames``.
        :param nodeid str:
            The nodeid of the definition item that generated this
            parametrization.
        :returns:
            List with ids for each parameter set given.
        N)rk   rÂ  )r  Ú_validate_idsrt  rè   r¾  rd   rÕ  )rÁ   rw   rÁ  r¿  rk   rÀ  Úids_Úid_makers           rR   r&  z#Metafunc._resolve_parameter_set_ids#  s…   € ð, ˆ;ØˆDØ‰DÜ�cŒ]ØˆDØ‰DàˆDØ×%Ñ% c¨=¸$¿-¹-×:PÑ:PÓQˆDÜØØØØØ�K‰KØØ—m‘m×,Ñ,ô
ˆð ×4Ñ4Ó6Ð6rT   c                óX  — 	 t        |«      }|t        |«      k7  r.|dk7  r)d}t        |j	                  |t        |«      |«      d¬«       t        t        j                  ||«      «      S # t        $ r8 	 t        |«       n# t        $ r}t        d«      |‚d }~ww xY wt        |«      }Y Œ›w xY w)Nz%ids must be a callable or an iterabler   zDIn {}: {} parameter sets specified, with different number of ids: {}Frö  )rÌ  Ú	TypeErrorÚiterr6   rj   r·   Ú	itertoolsÚislice)rÁ   rÁ  r¿  rÂ  Únum_idsrM  rl   s          rR   r7  zMetafunc._validate_idsM  s¦   € ð	)Ü˜#“hˆGð ”c˜-Ó(Ò(¨W¸ª\ØXˆCÜ�—‘˜I¤s¨=Ó'9¸7ÓCÈUÕSä”I×$Ñ$ S¨'Ó2Ó3Ð3øô ò 	)ðPÜ�S•	øÜò PÜÐ GÓHÈaÐOûðPúä˜-Ó(ŠGð	)ús5   ‚A( Á(	B)Á2A>Á=B)Á>	BÂBÂBÂB)Â(B)c                óž  — t        |t        «      r"t        j                  ||rd«      }|S d«      }|S t        |t        «      rPt        j                  |d«      }|D ]3  }||vr(t        d| j                  j                  › d|› d�d¬«       d||<   Œ5 |S t        d| j                  j                  › dt        |«      j                  › �d¬«       S )	a  Resolve if each parametrized argument must be considered an indirect
        parameter to a fixture of the same name, or a direct parameter to the
        parametrized function, based on the ``indirect`` parameter of the
        parametrized() call.

        :param argnames:
            List of argument names passed to ``parametrize()``.
        :param indirect:
            Same as the ``indirect`` parameter of ``parametrize()``.
        :returns
            A dict mapping each arg name to either "indirect" or "direct".
        r  Údirectrõ  z: indirect fixture 'z' doesn't existFrö  z1: expected Sequence or boolean for indirect, got )	r¬   rO   r'  Úfromkeysr   r6   rt  rè   rG   )rÁ   rw   r  r0  r{   s        rR   r+  z!Metafunc._resolve_args_directnessc  sì   € ô$ �h¤Ô%Ü!Ÿ]™]Ø©˜*óˆNð$ Ðð# 7?óˆNð$ Ðô ˜¤(Ô+Ü!Ÿ]™]¨8°XÓ>ˆNÛ�Ø˜hÑ&ÜØ˜dŸm™m×4Ñ4Ð5Ð5IÈ#ÈÈoÐ^Ø %õð '1�˜sÒ#ð  ð Ðô Ø�d—m‘m×,Ñ,Ð-ð .&Ü&*¨8£n×&=Ñ&=Ð%>ð@àõð
 ÐrT   c           
     ó6  — t        t        | j                  «      «      }| j                  j                  }|D ]`  }|| j                  vsŒ||v rt        d|› d|› d�d¬«       Œ+t        |t        «      r	||v rdnd}n|rdnd}t        d|› d|› d	|› d
�d¬«       Œb y)a4  Check if all argnames are being used, by default values, or directly/indirectly.

        :param List[str] argnames: List of argument names passed to ``parametrize()``.
        :param indirect: Same as the ``indirect`` parameter of ``parametrize()``.
        :raises ValueError: If validation fails.
        rõ  z&: function already takes an argument 'z' with a default valueFrö  ÚfixtureÚargumentz: function uses no z 'Ú'N)r  r   rt  rè   r  r6   r¬   r   )rÁ   rw   r  Údefault_arg_namesrÂ  r{   rY   s          rR   r$  z%Metafunc._validate_if_using_arg_namesŠ  s®   € ô  Ô 5°d·m±mÓ DÓEÐØ—M‘M×*Ñ*ˆ	ÛˆCØ˜$×+Ñ+Ò+ØÐ+Ñ+ÜØ˜i˜[Ð(NÈsÈeÐSiÐjØ %öô
 " (¬HÔ5Ø,/°8©O™yÀ™á,4™y¸*˜ÜØ˜i˜[Ð(;¸D¸6ÀÀCÀ5ÈÐJØ %öñ rT   )NN)
r[   r%  r   zfixtures.FuncFixtureInford   r'   r!  rO   rç   rx  )FNN)rw   zstr | Sequence[str]r,  z2Iterable[ParameterSet | Sequence[object] | object]r  úbool | Sequence[str]rÁ  ú?Iterable[object | None] | Callable[[Any], object | None] | Nonerj  z_ScopeName | NonerZ   zMark | Nonerç   rx  )
rw   rÃ  rÁ  rI  r¿  rÄ  rk   r´   rç   rù  )rÁ  zIterable[object | None]r¿  rÄ  rÂ  r´   rç   zlist[object | None])rw   rÃ  r  rH  rç   z(dict[str, Literal['indirect', 'direct']])rw   rÃ  r  rH  rç   rx  )
rè   ré   rê   rë   r~  rW   r&  r7  r+  r$  rs   rT   rR   rU   rU   B  s^  „ ñð Øð!*ð  ñ!*à&ð!*ð .ð!*ð ð	!*ð ð!*ð 
ó!*ðN */ØOSØ#'ðsð $(ñsà%ðsð Fðsð 'ð	sð
 Mðsð !ðsð !ðsð 
ósðj(7àð(7ð Mð(7ð .ð	(7ð
 ð(7ð 
ó(7ðT4à$ð4ð .ð4ð ð	4ð
 
ó4ð,%àð%ð 'ð%ð 
2ó	%ðNàðð 'ðð 
ô	rT   c                ó@  — t        |t        «      rt        |«      t        | «      k(  }nt        |«      }|rT|xs i }|j	                  «       D ��cg c]  \  }}|| v r|d   j
                  ‘Œ }}}t        |t        j                  ¬«      S t        j                  S c c}}w )a}  Find the most appropriate scope for a parametrized call based on its arguments.

    When there's at least one direct argument, always use "function" scope.

    When a test function is parametrized and all its arguments are indirect
    (e.g. fixtures), return the most narrow scope based on the fixtures used.

    Related to issue #1832, based on code posted by @Kingdread.
    rÉ  )rH   )	r¬   r   rÌ  rO   r  Ú_scopeÚminr>   ro   )rw   Úarg2fixturedefsr  Úall_arguments_are_fixturesÚfixturedefsrY   r1  Úused_scopess           rR   r#  r#  ©  sœ   € ô �(œHÔ%Ü%(¨£]´c¸(³mÑ%CÑ"ä%)¨(£^Ð"á!Ø%Ò+¨ˆð %0×$5Ñ$5Ô$7ô
á$7Ñ ��jØ�xÑð �r‰N×!Ó!Ø$7ð 	ñ 
ô �;¬¯©Ô7Ð7ä�>‰>Ðùó
s   ÁBc                óL   — |€d}n|j                  d«      }|r| S t        | «      S )NFrN   )r’   r   )rÚ  rd   Úescape_options      rR   rï  rï  É  s1   € Ø€~Ø‰àŸ™ØRó
ˆñ  ˆ3Ð7¤]°3Ó%7Ð7rT   c                  óØ   ‡ — e Zd ZdZdZddeddddf	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dˆ fd„Zedˆ fd„«       Zdd„Z	e
d„ «       Ze
d„ «       Zd	„ Zd
„ Ze
d„ «       Zdd„Zdd„Zdd„Z	 	 	 	 dd„Zˆ xZS )ro   a¬  Item responsible for setting up and executing a Python test function.

    :param name:
        The full function name, including any decorations like those
        added by parametrization (``my_func[my_param]``).
    :param parent:
        The parent Node.
    :param config:
        The pytest Config object.
    :param callspec:
        If given, this function has been parametrized and the callspec contains
        meta information about the parametrization.
    :param callobj:
        If given, the object which will be called when the Function is invoked,
        otherwise the callobj will be obtained from ``parent`` using ``originalname``.
    :param keywords:
        Keywords bound to the function object for "-k" matching.
    :param session:
        The pytest Session object.
    :param fixtureinfo:
        Fixture information already resolved at this fixture node..
    :param originalname:
        The attribute name to use for accessing the underlying function object.
        Defaults to ``name``. Set this if name is different from the original name,
        for example when it contains decorations like those added by parametrization
        (``my_func[my_param]``).
    FNc
                óú  •— t         ‰| �  ||||¬«       |t        ur|| _        t	        |dd «      | _        |	xs || _        | j                  j                  t        | j                  «      «       |r,|| _        | j                  j                  |j                  «       | j                  j                  d„ | j                  D «       «       | j                  j                  | j                  j                  «       |r| j                  j                  |«       |€=| j                   j"                  }
|
j%                  | | j                  | j&                  «      }|| _        |j*                  | _        | j/                  «        y )N)rd   r�   Ú__self__c              3  ó8   K  — | ]  }|j                   |f–— Œ y ­wr›   rX   rË   s     rR   rž   z$Function.__init__.<locals>.<genexpr>  s   è ø€ ÐLÑ;K°4˜dŸi™i¨Ô.Ñ;KùrÍ   )rY  r~  r#   rÉ   r°   Ú	_instancer$  rÐ   rÑ   r2   rt   r#  r  rÒ   rÓ   r  r�   rW  ÚgetfixtureinforÄ   rv   r  r  Ú_initrequest)rÁ   rY   r‡   rd   r#  r  rÒ   r�   r   r$  Úfmr[  s              €rR   r~  zFunction.__init__ö  s/  ø€ ô 	‰Ñ˜˜v¨f¸gÐÔFàœ&Ñ ØˆDŒIÜ$ W¨j¸$Ó?ˆDŒNð )Ò0¨DˆÔð
 	×Ñ×ÑÔ 2°4·8±8Ó <Ô=ÙØ$ˆDŒMØ×Ñ×#Ñ# H§N¡NÔ3ð 	�‰×ÑÑL¸4×;KÒ;KÓLÔLØ�‰×Ñ˜TŸX™X×.Ñ.Ô/ÙØ�M‰M× Ñ  Ô*àÐØ—‘×-Ñ-ˆBØ×+Ñ+¨D°$·(±(¸D¿H¹HÓEˆKØ-8ˆÔØ'×5Ñ5ˆÔØ×ÑÕrT   c                ó&   •— t        ‰| �  dd|i|¤ŽS )rš  r‡   rs   r›  )rÄ   r‡   rœ  r[  s      €rR   r†   zFunction.from_parent*  s   ø€ ô ‰wÑ"Ñ7¨&Ð7°BÑ7Ð7rT   c                óJ   — i | _         t        j                  | d¬«      | _        y )NTr  )ru   r   Ú
TopRequestÚ_requestrÆ   s    rR   rY  zFunction._initrequest/  s   € Ø+-ˆŒÜ ×+Ñ+¨D¸DÔAˆ�rT   c                ó,   — t        | j                  «      S )z$Underlying python 'function' object.)r   rt   rÆ   s    rR   rt  zFunction.function3  s   € ô ˜Ÿ™Ó"Ð"rT   c                ó¾   — 	 | j                   S # t        $ rE t        | j                  t        «      r| j                  «       | _         nd | _         Y | j                   S w xY wr›   )rW  ÚAttributeErrorr¬   r‡   r­   Ú_getinstancerÆ   s    rR   rÇ   zFunction.instance8  sP   € ð	&Ø—>‘>Ð!øÜò 	&Ü˜$Ÿ+™+¤uÔ-à!%×!2Ñ!2Ó!4�•à!%�”øØ�~‰~Ðð	&ús   ‚ ŽA AÁAc                ól   — t        | j                  t        «      r| j                  j                  «       S y r›   )r¬   r‡   r­   rž  rÆ   s    rR   rb  zFunction._getinstanceD  s&   € Ü�d—k‘k¤5Ô)à—;‘;×*Ñ*Ó,Ð,àrT   c                ó˜   — | j                   }|�|}n$| j                  €J ‚| j                  j                  }t        || j                  «      S r›   )rÇ   r‡   rt   r°   r$  )rÁ   rÇ   Ú
parent_objs      rR   rÎ   zFunction._getobjK  sF   € Ø—=‘=ˆØÐØ!‰Jà—;‘;Ð*Ð*Ð*ØŸ™Ÿ™ˆJÜ�z 4×#4Ñ#4Ó5Ð5rT   c                ó   — | S )zA(compatonly) for code expecting pytest-2.2 style request objects.rs   rÆ   s    rR   Ú_pyfuncitemzFunction._pyfuncitemT  s	   € ð ˆrT   c                ó<   — | j                   j                  | ¬«       y)z%Execute the underlying test function.)ry   N)r–   r~   rÆ   s    rR   ÚruntestzFunction.runtestY  s   € à�
‰
×%Ñ%°Ð%Õ6rT   c                ó8   — | j                   j                  «        y r›   )r^  Ú_fillfixturesrÆ   s    rR   r‚  zFunction.setup]  s   € Ø�‰×#Ñ#Õ%rT   c                ó€  — t        | d«      �r&| j                  j                  dd«      �s	t        j                  j
                  j                  t        | j                  «      «      }|j                  |j                  }}|j                  }|j                  ||¬«      }||k(  r0|j                  |¬«      }||k(  r|j                  t        «      }|s|}|j                  |«      }| j                  j                  dd«      dk(  r/t        |«      dkD  r!t!        |d	   gd
„ |dd D «       ¢|d   ‘­«      }|S |j                  S )NrÉ   Ú	fulltraceF)r‚   Úfirstlinenor�   ÚtbstyleÚautor:  r   c              3  ó>   K  — | ]  }|j                  d «      –— Œ y­w)r7  N)Úwith_repr_style)rœ   Úts     rR   rž   z-Function._traceback_filter.<locals>.<genexpr>u  s   è ø€ ÐSÑBR¸Q˜a×/Ñ/°×8ÑBRùs   ‚r¥   rÉ  )rx   rd   r;  Ú_pytestÚ_codeÚCodeÚfrom_functionr   rt   r‚   rn  rD  ÚcutrE  r   rÌ  r   )rÁ   ÚexcinfoÚcoder‚   rn  rD  Ú
ntracebacks          rR   Ú_traceback_filterzFunction._traceback_filter`  s.  € Ü�4˜Õ ¨¯©×)>Ñ)>¸{ÈEÕ)RÜ—=‘=×%Ñ%×3Ñ3´MÀ$Ç(Á(Ó4KÓLˆDØ $§	¡	¨4×+;Ñ+;�+ˆDØ×)Ñ)ˆIØ"Ÿ™¨D¸k˜ÓJˆJØ˜YÒ&Ø'Ÿ^™^°˜^Ó6�
Ø Ò*Ø!+×!2Ñ!2Ô3CÓ!D�JÙ%Ø%.˜
Ø#×*Ñ*¨7Ó3ˆJð �{‰{×$Ñ$ Y°Ó7¸6ÒAÜ�z“? QÒ&Ü!*à& q™MðáSÀ*ÈQÈrÑBRÓSðð ' r™Nñó"�Jð ÐØ× Ñ Ð rT   c                ón   — | j                   j                  dd«      }|dk(  rd}| j                  ||¬«      S )Nro  rp  Úlongr8  )rd   r;  Ú_repr_failure_py)rÁ   ry  r9  s      rR   Úrepr_failurezFunction.repr_failure~  s<   € ð —‘×%Ñ% i°Ó8ˆØ�FŠ?ØˆEØ×$Ñ$ W°EÐ$Ó:Ð:rT   )rY   r´   rd   rÅ  r#  zCallSpec2 | NonerÒ   zMapping[str, Any] | Noner�   zSession | Noner   zFuncFixtureInfo | Noner$  rÆ  rç   rx  r¶  rw  )ry  úExceptionInfo[BaseException]rç   r   )ry  r�  rç   zstr | TerminalRepr)rè   ré   rê   rë   rÏ   r#   r~  r  r†   rY  rì   rt  rÇ   rb  rÎ   rg  ri  r‚  r|  r€  ry  rz  s   @rR   ro   ro   Ö  s   ø„ ñð: €Nð !%Ø%)ØØ-1Ø"&Ø.2Ø#'ð1àð1ð ð	1ð
 #ð1ð +ð1ð  ð1ð ,ð1ð !ð1ð 
õ1ðh ô8ó ð8óBð ñ#ó ð#ð ñ	ó ð	òò6ð ñó ðó7ó&ó!ð<;à-ð;ð 
÷;rT   c                  ó   — e Zd ZdZdd„ZeZy)r%  z…This class is a stop gap solution until we evolve to have actual function
    definition nodes and manage to get rid of ``metafunc``.c                ó   — t        d«      ‚)Nz8function definitions are not supposed to be run as tests)ÚRuntimeErrorrÆ   s    rR   ri  zFunctionDefinition.runtestŒ  s   € ÜÐUÓVÐVrT   Nrw  )rè   ré   rê   rë   ri  r‚  rs   rT   rR   r%  r%  ˆ  s   „ ñ?óWð �ErT   r%  )rQ   r)   rç   rx  )r^   rU   rç   rx  )rd   r'   rç   rx  )rk   r´   rç   rx  )ry   ro   rç   úobject | None)r‚   r   r‡   rŽ  rç   znodes.Collector | None)r•   r   r‡   rŽ  rç   zModule | None)r‚   r   r    rú  rç   rO   )r�   r   rç   r¡   )r¹   zModule | ClassrY   r´   rt   r1  rç   zHNone | nodes.Item | nodes.Collector | list[nodes.Item | nodes.Collector])r‚   r   rd   r'   rw  )rt   r1  r•  rú  rç   r…  r0  )re  r,   rç   r   )rw   rÃ  rM  z3Mapping[str, Sequence[fixtures.FixtureDef[object]]]r  rH  rç   r>   )rÚ  zstr | bytesrd   rÅ  rç   r´   )‹rë   Ú
__future__r   ÚabcÚcollectionsr   r   r  rò  r  Ú	functoolsr   r±   r=  rÛ   Úpathlibr   ÚtypesÚtypingr   r	   r
   r   r   r   r   r   r   r   r   r   rh   rt  r   r   Ú_pytest._coder   r   Ú_pytest._code.coder   r   r   Ú_pytest._io.safereprr   Ú_pytest.compatr   r   r   r   r    r!   r"   r#   r%   r&   Ú_pytest.configr'   r(   Ú_pytest.config.argparsingr)   Ú_pytest.deprecatedr*   Ú_pytest.fixturesr+   r,   r-   r.   Ú_pytest.mainr/   Ú_pytest.markr0   r1   Ú_pytest.mark.structuresr2   r3   r4   r5   Ú_pytest.outcomesr6   r7   Ú_pytest.pathlibr9   r:   r;   r<   Ú_pytest.scoper=   r>   Ú_pytest.stashr?   Ú_pytest.warning_typesr@   rA   rB   Útyping_extensionsrC   rS   r`   re   rm   r~   rŠ   r˜   r‘   r”   r»   ÚNoder½   rï   Ú	frozensetÚunionÚdirÚ
ModuleTyper  r>  ÚABCrõ   rQ  ÚFiler¡   Ú	Directoryr…   rd  rn  r­   r¡  r¢  Ú	dataclassr¾  rþ  r  r´   r*  rU   r#  rï  ÚItemro   r%  rs   rT   rR   Ú<module>r¨     sM  ðá =å "ã 
Ý Ý #Û Û Û Ý Û Û Û 	Ý Û Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý Ý  Û ã Ý Ý Ý *Ý %Ý ,Ý +Ý (Ý )Ý (Ý 0Ý (Ý $Ý ,Ý 'Ý &Ý !Ý 'Ý 'Ý !Ý #Ý ,Ý -Ý 'Ý +Ý ,Ý +Ý  Ý !Ý %Ý 6Ý (Ý 1Ý 7Ý !Ý !Ý &Ý 'Ý 3Ý #Ý $Ý Ý "Ý 9Ý <Ý Añ Ý&óó:Pó
ó(Sñ 
�$Ôòó ðð&Ø
ðØ'ðàóóóBó
8ñ 
�$Ôð#Øð#Ø%(ð#Ø/5ð#àMò#ó ð#ôLK%�—‘ô K%÷d Ñ Ø—_‘_ÙƒKáÐˆ×Ñ˜Ó(Ó)â.áˆÓá‰‹Óó
Ð ð ôH�*˜eŸo™o¨s¯w©wô HðV5Ø
ð5àó5ôpP
ˆU�Z‰Z˜ô P
ôfP ˆe�o‰oô P óf	óôg
ˆKô g
óTóð Ø€×Ñ˜dÔ#÷f'ð f'ó $ó ðf'ðR Ø€×Ñ˜dÔ#÷7&ð 7&ó $ó ð7&ótð
 A˜H T¨#¨z¸#©Ð*>Ñ%?Ñ@ÓBÐ ð ÷cð có ðcðLØðàHðð #ðð ó	ó@
8ôo;ˆz˜5Ÿ:š:ô o;ôd˜õ rT   