a
    ˆÏ?emd  ã                   @   s�  d Z ddlZddlZddlZddlZddlm  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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% e#d ƒ Z&e'e(dœdd„Z)ddœdd„Z*i Z+dddgie+d < dg d!¢ie+d"< e+d   ,¡ e+d#< e*e+d# e+d" ƒ e+d  e+d$< G d%d&„ d&ƒZ-ee(dd'œd(d)„Z.ej/eee(e'gdf d*œd+d,„ƒZ0ej/eee(e'gdf d*œd-d.„ƒZ1e(e(dd/œd0d1„Z2ej/d2d3�eee(e'gdf d*œd4d5„ƒZ3edd6œd7d8„Z4edd9œd:d;„Z5edd9œd<d=„Z6e(ee( d>œd?d@„Z7G dAd„ dƒZ8dS )Ba  Report test results in JUnit-XML format, for use with Jenkins and build
integration servers.

Based on initial code from Ross Lawley.

Output conforms to
https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd
é    N)Údatetime)ÚCallable)ÚDict)ÚList)ÚMatch)ÚOptional)ÚTuple)ÚUnion)Únodes)Útiming)ÚExceptionRepr)ÚReprFileLocation)ÚConfig)Úfilename_arg)ÚParser)ÚFixtureRequest)Ú
TestReport)ÚStashKey)ÚTerminalReporterÚLogXML)ÚargÚreturnc                 C   s*   t t tdœdd„}d}t ||t| ƒ¡S )a!  Visually escape invalid XML characters.

    For example, transforms
        'hello\aworld\b'
    into
        'hello#x07world#x08'
    Note that the #xABs are *not* XML escapes - missing the ampersand &#xAB.
    The idea is to escape visually for the user rather than for XML itself.
    )Úmatchobjr   c                 S   s(   t |  ¡ ƒ}|dkrd| S d| S d S )Néÿ   z#x%02Xz#x%04X)ÚordÚgroup)r   Úi© r   úS/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/_pytest/junitxml.pyÚrepl3   s    zbin_xml_escape.<locals>.replu    [^	
 -~Â€-íŸ¿î€€-ï¿½á€€0-áƒ¿FF])r   ÚstrÚreÚsub)r   r   Zillegal_xml_rer   r   r   Úbin_xml_escape(   s    ÿr#   ©r   c                 C   sX   i }|   ¡ D ]<\}}|  ¡ D ]*\}}t|tƒs:tt|ƒƒ‚|| ||< qq|  |¡ d S ©N)ÚitemsÚ
isinstanceÚlistÚ	TypeErrorÚtypeÚupdate)ÚleftÚrightÚresultÚklZvlZkrZvrr   r   r   Úmerge_familyC   s    
r0   ÚtestcaseÚ	classnameÚnameÚ_base)ÚfileÚlineÚurlZ_base_legacyÚxunit1Úxunit2c                   @   sN  e Zd Zeeef dddœdd„Zejddœdd„Z	ee
dd	œd
d„Zee
dd	œdd„Zeej dœdd„Zeddœdd„Zejdœdd„Zd0eeee ddœdd„Zeddœdd„Zeeedœdd„Zeeeddœd d!„Zeddœd"d#„Zeddœd$d%„Zeddœd&d'„Zeddœd(d)„Zeddœd*d+„Zeddœd,d-„Zddœd.d/„ZdS )1Ú_NodeReporterr   N)ÚnodeidÚxmlr   c                 C   s<   || _ || _| jj| _| jj| _d| _g | _g | _i | _d S )Nç        )Úidr<   Ú	add_statsÚfamilyÚdurationÚ
propertiesr
   Úattrs)Úselfr;   r<   r   r   r   Ú__init__Z   s    

z_NodeReporter.__init__)Únoder   c                 C   s   | j  |j¡ | j |¡ d S r%   )r<   r?   Útagr
   Úappend)rD   rF   r   r   r   rH   d   s    z_NodeReporter.append©r3   Úvaluer   c                 C   s   | j  t|ƒt|ƒf¡ d S r%   )rB   rH   r    r#   ©rD   r3   rJ   r   r   r   Úadd_propertyh   s    z_NodeReporter.add_propertyc                 C   s   t |ƒ| jt|ƒ< d S r%   )r#   rC   r    rK   r   r   r   Úadd_attributek   s    z_NodeReporter.add_attributer$   c                 C   s>   | j r:t d¡}| j D ]\}}| tjd||d�¡ q|S dS ©z9Return a Junit node containing custom properties, if any.rB   Úproperty©r3   rJ   N)rB   ÚETÚElementrH   ©rD   rB   r3   rJ   r   r   r   Úmake_properties_noden   s    
z"_NodeReporter.make_properties_node)Ú
testreportr   c                 C   sæ   t |jƒ}| j}|d d… }| jjr4| d| jj¡ d |¡t|d ƒ|jd dœ}|jd d urtt	|jd ƒ|d< t
|dƒrˆ|j|d< || _| j |¡ | jdkr¨d S i }| j ¡ D ]$}|t| j d	 v r¶| j| ||< q¶|| _d S )
Néÿÿÿÿr   Ú.)r2   r3   r5   é   r6   r7   r8   r1   )Úmangle_test_addressr;   rC   r<   ÚprefixÚinsertÚjoinr#   Úlocationr    Úhasattrr7   r+   r@   ÚkeysÚfamilies)rD   rU   ÚnamesZexisting_attrsZ
classnamesrC   Z
temp_attrsÚkeyr   r   r   Úrecord_testreportw   s,    

ý


z_NodeReporter.record_testreportc                 C   sB   t jd| jd| j d�}|  ¡ }|d ur2| |¡ | | j¡ |S )Nr1   ú%.3f)Útime)rQ   rR   rC   rA   rT   rH   Úextendr
   )rD   r1   rB   r   r   r   Úto_xml•   s    
z_NodeReporter.to_xml)rG   ÚmessageÚdatar   c                 C   s&   t j||d�}t|ƒ|_|  |¡ d S )N)rh   ©rQ   rR   r#   ÚtextrH   )rD   rG   rh   ri   rF   r   r   r   Ú_add_simple�   s    
z_NodeReporter._add_simple©Úreportr   c                 C   sÂ   | j js|jrd S |j}|j}|j}| j jdkr4d S d}| j jdv rP|  |d¡}| j jdv r~||  |d¡7 }|  ||d¡ d}| j jdv r¬||  |d	¡7 }|  ||d
¡ d}|r¾|  ||d¡ d S )NÚnoÚ )ÚlogÚallz Captured Log )ú
system-outúout-errrr   z Captured Out rs   )ú
system-errrt   rr   z Captured Err ru   )	r<   Úlog_passing_testsÚpassedZ	capstdoutZcaplogZ	capstderrÚloggingÚ_prepare_contentÚ_write_content)rD   rn   Zcontent_outZcontent_logZcontent_errZcontent_allr   r   r   Úwrite_captured_output¢   s(    z#_NodeReporter.write_captured_output)ÚcontentÚheaderr   c                 C   s   d  | dd¡|dg¡S )NÚ
éP   ú-rp   )r\   Úcenter)rD   r|   r}   r   r   r   ry   ¹   s    z_NodeReporter._prepare_content)rn   r|   Újheaderr   c                 C   s"   t  |¡}t|ƒ|_|  |¡ d S r%   rj   )rD   rn   r|   r‚   rG   r   r   r   rz   ¼   s    

z_NodeReporter._write_contentc                 C   s   |   d¡ d S )Nrw   )r?   ©rD   rn   r   r   r   Úappend_passÁ   s    z_NodeReporter.append_passc                 C   sn   t |dƒr|  dd¡ nR|jd us&J ‚t|jdd ƒ}|d urD|j}n
t|jƒ}t|ƒ}|  d|t|jƒ¡ d S )NÚwasxfailÚskippedz%xfail-marked test passes unexpectedlyÚ	reprcrashÚfailure)r^   rl   ÚlongreprÚgetattrrh   r    r#   )rD   rn   r‡   rh   r   r   r   Úappend_failureÄ   s    
ÿ
z_NodeReporter.append_failurec                 C   s&   |j d usJ ‚|  ddt|j ƒ¡ d S )NÚerrorzcollection failure)r‰   rl   r    rƒ   r   r   r   Úappend_collect_errorÔ   s    z"_NodeReporter.append_collect_errorc                 C   s   |   ddt|jƒ¡ d S )Nr†   zcollection skipped)rl   r    r‰   rƒ   r   r   r   Úappend_collect_skippedÙ   s    z$_NodeReporter.append_collect_skippedc                 C   sv   |j d usJ ‚t|j dd ƒ}|d ur,|j}n
t|j ƒ}|jdkrNd|› d�}nd|› d�}|  dt|ƒt|j ƒ¡ d S )Nr‡   Úteardownzfailed on teardown with "ú"zfailed on setup with "rŒ   )r‰   rŠ   rh   r    Úwhenrl   r#   )rD   rn   r‡   ÚreasonÚmsgr   r   r   Úappend_errorÜ   s    ÿ

z_NodeReporter.append_errorc                 C   sÂ   t |dƒrJ|j}| d¡r&|dd … }t|ƒ}tjdd|d�}|  |¡ ntt|jt	ƒsZJ ‚|j\}}}| d¡r||dd … }|› d	|› d
|› �}tjdd|d�}t|ƒ|_
|  |¡ |  |¡ d S )Nr…   zreason: é   r†   zpytest.xfail)r*   rh   z	Skipped: é	   ú:z: zpytest.skip)r^   r…   Ú
startswithr#   rQ   rR   rH   r'   r‰   Útuplerk   r{   )rD   rn   Zxfailreasonr†   ÚfilenameÚlinenoZ
skipreasonÚdetailsr   r   r   Úappend_skippedì   s     




z_NodeReporter.append_skippedc                    s$   |   ¡ ‰ | j ¡  ‡ fdd„| _ d S )Nc                      s   ˆ S r%   r   r   ©ri   r   r   Ú<lambda>  ó    z(_NodeReporter.finalize.<locals>.<lambda>)rg   Ú__dict__Úclear©rD   r   rž   r   Úfinalize   s    
z_NodeReporter.finalize)N)Ú__name__Ú
__module__Ú__qualname__r	   r    r   rE   rQ   rR   rH   ÚobjectrL   rM   r   rT   rc   rg   rl   r{   ry   rz   r„   r‹   r�   rŽ   r”   r�   r¤   r   r   r   r   r:   Y   s$   
	r:   )ÚrequestÚfixture_namer   c                 C   sN   ddl m} | jj td¡}|durJ|jdvrJ| j |dj	||jd�ƒ¡ dS )z[Emit a PytestWarning about the given fixture being incompatible with newer xunit revisions.r   )ÚPytestWarningN)r8   ÚlegacyzV{fixture_name} is incompatible with junit_family '{family}' (use 'legacy' or 'xunit1'))rª   r@   )
Ú_pytest.warning_typesr«   ÚconfigÚstashÚgetÚxml_keyr@   rF   ÚwarnÚformat)r©   rª   r«   r<   r   r   r   Ú!_warn_incompatibility_with_xunit2  s    ÿÿÿr´   )r©   r   c                    s$   t ˆ dƒ ttddœ‡ fdd„}|S )an  Add extra properties to the calling test.

    User properties become part of the test report and are available to the
    configured reporters, like JUnit XML.

    The fixture is callable with ``name, value``. The value is automatically
    XML-encoded.

    Example::

        def test_function(record_property):
            record_property("example_key", 1)
    Úrecord_propertyNrI   c                    s   ˆ j j | |f¡ d S r%   )rF   Úuser_propertiesrH   rP   ©r©   r   r   Úappend_property*  s    z(record_property.<locals>.append_property)r´   r    r¨   )r©   r¸   r   r·   r   rµ     s    
rµ   c                 C   sl   ddl m} | j |dƒ¡ t| dƒ ttddœdd„}|}| jj 	t
d¡}|durh| | jj¡}|j}|S )	z�Add extra xml attributes to the tag for the calling test.

    The fixture is callable with ``name, value``. The value is
    automatically XML-encoded.
    r   )ÚPytestExperimentalApiWarningz/record_xml_attribute is an experimental featureÚrecord_xml_attributeNrI   c                 S   s   d S r%   r   rP   r   r   r   Úadd_attr_noop@  s    z+record_xml_attribute.<locals>.add_attr_noop)r­   r¹   rF   r²   r´   r    r¨   r®   r¯   r°   r±   Únode_reporterr;   rM   )r©   r¹   r»   Z	attr_funcr<   r¼   r   r   r   rº   0  s    ÿ
rº   )ÚparamÚvr   c                 C   s.   d}t |tƒs*d}t|j| t|ƒjd�ƒ‚dS )zcUsed by record_testsuite_property to check that the given parameter name is of the proper
    type.Tz5{param} parameter needs to be a string, but {g} given)r½   ÚgN)r'   r    r)   r³   r*   r¥   )r½   r¾   Ú__tracebackhide__r“   r   r   r   Ú_check_record_param_typeM  s    
rÁ   Úsession)Zscopec                 C   s8   d}t tddœdd„}| jj td¡}|dur4|j}|S )a+  Record a new ``<property>`` tag as child of the root ``<testsuite>``.

    This is suitable to writing global information regarding the entire test
    suite, and is compatible with ``xunit2`` JUnit family.

    This is a ``session``-scoped fixture which is called with ``(name, value)``. Example:

    .. code-block:: python

        def test_foo(record_testsuite_property):
            record_testsuite_property("ARCH", "PPC")
            record_testsuite_property("STORAGE_TYPE", "CEPH")

    :param name:
        The property name.
    :param value:
        The property value. Will be converted to a string.

    .. warning::

        Currently this fixture **does not work** with the
        `pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`__ plugin. See
        :issue:`7767` for details.
    TNrI   c                 S   s   d}t d| ƒ dS )zENo-op function in case --junitxml was not passed in the command-line.Tr3   N)rÁ   )r3   rJ   rÀ   r   r   r   Úrecord_funcs  s    z.record_testsuite_property.<locals>.record_func)r    r¨   r®   r¯   r°   r±   Úadd_global_property)r©   rÀ   rÃ   r<   r   r   r   Úrecord_testsuite_propertyV  s    rÅ   )Úparserr   c              
   C   sš   |   d¡}|jdddddtjtdd�d dd	� |jd
dddd dd� | jdddd� | jdddd� | jddddd� | jdddd� | jddd d� d S )!Nzterminal reportingz
--junitxmlz--junit-xmlÚstoreÚxmlpathÚpath)Úoptnamez0Create junit-xml style report file at given path)ÚactionÚdestÚmetavarr*   ÚdefaultÚhelpz--junitprefixz--junit-prefixr    z0Prepend prefix to classnames in junit-xml output)rË   rÍ   rÎ   rÏ   Újunit_suite_namez Test suite name for JUnit reportÚpytest)rÎ   Újunit_loggingz\Write captured log messages to JUnit report: one of no|log|system-out|system-err|out-err|allro   Újunit_log_passing_testsz;Capture log information for passing tests to JUnit report: ÚboolT)r*   rÎ   Újunit_duration_reportz*Duration time to report: one of total|callÚtotalÚjunit_familyz0Emit XML for schema: one of legacy|xunit1|xunit2r9   )ZgetgroupZ	addoptionÚ	functoolsÚpartialr   Zaddini)rÆ   r   r   r   r   Úpytest_addoption~  sV    
ø
úÿüüýýrÚ   )r®   r   c              
   C   sl   | j j}|rht| dƒsh|  d¡}t|| j j|  d¡|  d¡|  d¡||  d¡ƒ| jt< | j 	| jt ¡ d S )NZworkerinputr×   rÐ   rÒ   rÕ   rÓ   )
ÚoptionrÈ   r^   Zgetinir   Zjunitprefixr¯   r±   ÚpluginmanagerÚregister)r®   rÈ   r×   r   r   r   Úpytest_configure­  s    
ù
	rÞ   c                 C   s*   | j  td ¡}|r&| j t= | j |¡ d S r%   )r¯   r°   r±   rÜ   Ú
unregister)r®   r<   r   r   r   Úpytest_unconfigure¾  s    rà   )Úaddressr   c                 C   s^   |   d¡\}}}| d¡}|d  tjd¡|d< t dd|d ¡|d< |d  || 7  < |S )Nú[z::r   rW   z\.py$rp   rV   )Ú	partitionÚsplitÚreplacer
   ZSEPr!   r"   )rá   rÉ   Zpossible_open_bracketÚparamsra   r   r   r   rY   Å  s    
rY   c                   @   s  e Zd Zd*ee eeeeddœdd	„Zedd
œdd„Ze	eef e
d
œdd„Zeddœdd„Zee
d
œdd„Zedd
œdd„Zedd
œdd„Zedd
œdd„Zeddœdd„Zddœdd„Zddœd d!„Zedd"œd#d$„Zeedd%œd&d'„Zeej dœd(d)„ZdS )+r   rÑ   ro   rÖ   r8   TN)rZ   Ú
suite_namerx   Úreport_durationrv   r   c                 C   s’   t j t j |¡¡}t j t j |¡¡| _|| _|| _|| _	|| _
|| _|| _t g d¢d¡| _i | _g | _g | _g | _d| _| jdkrŽd| _d S )N)rŒ   rw   rˆ   r†   r   r¬   r8   )ÚosrÉ   Ú
expanduserÚ
expandvarsÚnormpathÚabspathÚlogfilerZ   rç   rx   rv   rè   r@   ÚdictÚfromkeysÚstatsÚnode_reportersÚnode_reporters_orderedÚglobal_propertiesÚopen_reportsÚcnt_double_fail_tests)rD   rî   rZ   rç   rx   rè   r@   rv   r   r   r   rE   Ñ  s&    
ÿþ
zLogXML.__init__rm   c                 C   s\   t |d|ƒ}t |dd ƒ}| j ||f¡}|jD ]\}}| |t|ƒ¡ q.|d urX| ¡  d S ©Nr;   rF   )rŠ   rò   Úpopr¶   rL   r    r¤   )rD   rn   r;   Ú
workernodeÚreporterZpropnameZ	propvaluer   r   r   r¤   ô  s    zLogXML.finalizec                 C   sX   t |d|ƒ}t |dd ƒ}||f}|| jv r4| j| S t|| ƒ}|| j|< | j |¡ |S r÷   )rŠ   rò   r:   ró   rH   )rD   rn   r;   rù   rb   rú   r   r   r   r¼      s    



zLogXML.node_reporter)rb   r   c                 C   s    || j v r| j |  d7  < d S )NrX   )rñ   )rD   rb   r   r   r   r?     s    
zLogXML.add_statsc                 C   s   |   |¡}| |¡ |S r%   )r¼   rc   ©rD   rn   rú   r   r   r   Ú_opentestcase  s    

zLogXML._opentestcasec                    sn  d}ˆ j r*ˆ jdkrî|  ˆ ¡}| ˆ ¡ nÄˆ jrÔˆ jdkrŒtˆ ddƒ‰tˆ ddƒ‰t‡ ‡‡fdd„| jD ƒdƒ}|rŒ|  |¡ |  j	d7  _	|  ˆ ¡}ˆ jdkrÈ| 
ˆ ¡ | j ˆ ¡ | jsÒ| ˆ ¡ qî| ˆ ¡ nˆ jrî|  ˆ ¡}| ˆ ¡ |  ˆ ¡ ˆ jdk�rj|  ˆ ¡}| ˆ ¡ |  ˆ ¡ tˆ ddƒ‰tˆ ddƒ‰t‡ ‡‡fd	d„| jD ƒdƒ}|�rj| j |¡ dS )
a  Handle a setup/call/teardown report, generating the appropriate
        XML tags as necessary.

        Note: due to plugins like xdist, this hook may be called in interlaced
        order with reports from other nodes. For example:

        Usual call order:
            -> setup node1
            -> call node1
            -> teardown node1
            -> setup node2
            -> call node2
            -> teardown node2

        Possible call order in xdist:
            -> setup node1
            -> call node1
            -> setup node2
            -> call node2
            -> teardown node2
            -> teardown node1
        NÚcallr�   Ú	worker_idÚ
item_indexc                 3   s>   | ]6}|j ˆ j krt|d dƒˆkrt|ddƒˆkr|V  qdS ©rÿ   Nrþ   ©r;   rŠ   ©Ú.0Úrep©rn   Z	report_iiZ
report_widr   r   Ú	<genexpr>=  s
   ûz2LogXML.pytest_runtest_logreport.<locals>.<genexpr>rX   c                 3   s>   | ]6}|j ˆ j krt|d dƒˆkrt|ddƒˆkr|V  qdS r   r  r  r  r   r   r  b  s
   û)rw   r‘   rü   r„   ÚfailedrŠ   Únextrõ   r¤   rö   r‹   rH   rv   r{   r”   r†   r�   Úupdate_testcase_durationÚremove)rD   rn   Zclose_reportrú   r   r  r   Úpytest_runtest_logreport  sV    


þ	ö









þ	özLogXML.pytest_runtest_logreportc                 C   s:   | j dks|j| j kr6|  |¡}| jt|ddƒ7  _dS )zƒAccumulate total duration for nodeid from given report and update
        the Junit.testcase with the new total if already created.rÖ   rA   r=   N)rè   r‘   r¼   rA   rŠ   rû   r   r   r   r	  p  s    
zLogXML.update_testcase_durationc                 C   s0   |j s,|  |¡}|jr"| |¡ n
| |¡ d S r%   )rw   rü   r  r�   rŽ   rû   r   r   r   Úpytest_collectreportw  s
    
zLogXML.pytest_collectreport)Úexcreprr   c                 C   s0   |   d¡}|jjddd� | ddt|ƒ¡ d S )NZinternalrÑ   )r2   r3   rŒ   zinternal error)r¼   rC   r+   rl   r    )rD   r  rú   r   r   r   Úpytest_internalerror  s    
zLogXML.pytest_internalerrorr$   c                 C   s   t  ¡ | _d S r%   )r   re   Úsuite_start_timer£   r   r   r   Úpytest_sessionstart„  s    zLogXML.pytest_sessionstartc           
      C   sV  t j t j | j¡¡}t j|dd� t| jddd���
}t ¡ }|| j	 }| j
d | j
d  | j
d  | j
d	  | j }| d
¡ tjd| jt| j
d	 ƒt| j
d ƒt| j
d ƒt|ƒd| t | j	¡ ¡ t ¡ d�	}|  ¡ }|d urð| |¡ | jD ]}| | ¡ ¡ qöt d¡}	|	 |¡ | tj|	dd�¡ W d   ƒ n1 �sH0    Y  d S )NT)Úexist_okÚwzutf-8)Úencodingrw   rˆ   r†   rŒ   z&<?xml version="1.0" encoding="utf-8"?>Z	testsuiterd   )r3   ÚerrorsZfailuresr†   Útestsre   Ú	timestampÚhostnameÚ
testsuitesÚunicode)ré   rÉ   Údirnamerí   rî   ÚmakedirsÚopenr   re   r  rñ   rö   ÚwriterQ   rR   rç   r    r   ÚfromtimestampÚ	isoformatÚplatformrF   Ú_get_global_properties_noderH   ró   rg   Útostring)
rD   r  rî   Zsuite_stop_timeZsuite_time_deltaZnumtestsZ
suite_noderô   r¼   r  r   r   r   Úpytest_sessionfinish‡  sF    
ÿþýüÿ
÷



zLogXML.pytest_sessionfinish)Úterminalreporterr   c                 C   s   |  dd| j› �¡ d S )Nr€   zgenerated xml file: )Z	write_seprî   )rD   r$  r   r   r   Úpytest_terminal_summary­  s    zLogXML.pytest_terminal_summaryrI   c                 C   s&   d}t d|ƒ | j |t|ƒf¡ d S )NTr3   )rÁ   rô   rH   r#   )rD   r3   rJ   rÀ   r   r   r   rÄ   °  s    
zLogXML.add_global_propertyc                 C   s>   | j r:t d¡}| j D ]\}}| tjd||d�¡ q|S dS rN   )rô   rQ   rR   rH   rS   r   r   r   r!  µ  s    
z"LogXML._get_global_properties_node)rÑ   ro   rÖ   r8   T)r¥   r¦   r§   r   r    rÔ   rE   r   r¤   r	   r:   r¼   r?   rü   r  r	  r  r   r  r  r#  r   r%  r¨   rÄ   rQ   rR   r!  r   r   r   r   r   Ð  s4        ø÷#U&)9Ú__doc__rØ   ré   r   r!   Úxml.etree.ElementTreeÚetreeÚElementTreerQ   r   Útypingr   r   r   r   r   r   r	   rÑ   Z_pytestr
   r   Z_pytest._code.coder   r   Z_pytest.configr   r   Z_pytest.config.argparsingr   Z_pytest.fixturesr   Z_pytest.reportsr   Z_pytest.stashr   Z_pytest.terminalr   r±   r¨   r    r#   r0   r`   Úcopyr:   r´   Zfixturerµ   rº   rÁ   rÅ   rÚ   rÞ   rà   rY   r   r   r   r   r   Ú<module>   sf   

 1þ	
'/