Ë
    •Kêj¥\  ã                  ó>  — U d 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Zddl	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 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ddœZ,de-d<   d3d „Z.eej^                   G d!„ d"«      «       «       Z0 G d#„ d$«      Z1 G d%„ d&«      Z2 G d'„ d(«      Z3 G d)„ d*«      Z4d4d+„Z5d5d,„Z6 ed-¬.«      d6d/„«       Z7e!d7d0„«       Z8d8d1„Z9d9d2„Z:y):z%Implementation of the cache provider.é    )Úannotations)Ú	Generator)ÚIterableN)ÚPath)Úfinalé   )Úresolve_from_str)Úrm_rf)ÚCollectReport)Únodes)ÚTerminalWriter)ÚConfig)ÚExitCode)Úhookimpl)ÚParser)Úcheck_ispytest)Úfixture)ÚFixtureRequest)ÚSession)ÚNodeId)Ú	Directory)ÚFile)Ú
TestReports.  # pytest cache directory #

This directory contains data from the pytest's cache plugin,
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.

**Do not** commit this to version control.

See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
s%   # Created by pytest automatically.
*
s¿   Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by pytest.
# For information about cache directory tags, see:
#	https://bford.info/cachedir/spec.html
)z	README.mdz
.gitignorezCACHEDIR.TAGzdict[str, bytes]ÚCACHEDIR_FILESc                ó–  — | j                   j                  dd¬«       t        t        j                  d| j                   ¬«      «      }	 t        j                  d«      }t        j                  |«       |j                  d|z
  «       t        j                  «       D ]%  \  }}|j                  |«      j                  |«       Œ' |j                  | «       t#        j$                  |d¬«       y# t        $ r7}|j                  t        j                  t        j                   fvr‚ Y d}~ŒSd}~ww xY w# t#        j$                  |d¬«       w xY w)	a  Create the pytest cache directory atomically with supporting files.

    Creates a temporary directory with README.md, .gitignore, and CACHEDIR.TAG,
    then atomically renames it to the target location. If another process wins
    the race, the temporary directory is cleaned up.
    T)ÚparentsÚexist_okzpytest-cache-files-)ÚprefixÚdiré   iÿ  N)Úignore_errors)ÚparentÚmkdirr   ÚtempfileÚmkdtempÚosÚumaskÚchmodr   ÚitemsÚjoinpathÚwrite_bytesÚrenameÚOSErrorÚerrnoÚ	ENOTEMPTYÚEEXISTÚshutilÚrmtree)ÚtargetÚpathr'   ÚnameÚcontentÚes         úZ/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/_pytest/cacheprovider.pyÚ_make_cachedirr9   ;   sý   € ð ‡M�M×Ñ ¨tÐÔ4Ü”× Ñ Ð(=À6Ç=Á=ÔQÓR€Dð0ô —‘˜“ˆÜ
�‰�ŒØ�
‰
�5˜5‘=Ô!ä+×1Ñ1Ó3ò 	5‰MˆD�'Ø�M‰M˜$Ó×+Ñ+¨GÕ4ð	5ð 	�‰�FÔô 	�‰�d¨$Ö/øô ò ð
 �7‰7œ5Ÿ?™?¬E¯L©LÐ9Ñ9Øô :ûðûô 	�‰�d¨$Ö/ús+   Á	BC, Ã,	D,Ã5-D'Ä"D/ Ä'D,Ä,D/ Ä/Ec                  ó*  — e Zd ZU dZ ej
                  d¬«      Zded<    ej
                  d¬«      Zded<   dZ	d	Z
dd
œ	 	 	 	 	 	 	 dd„Zedd
œdd„«       Zeddd„«       Zedd
œdd„«       Zdd
œdd„Zdd„Zedd„«       Zd d„Zd!d„Zd"d„Zd#d„Zd$d„Zy)%ÚCachez Instance of the `cache` fixture.F)Úreprr   Ú	_cachedirr   Ú_configÚdÚv©Ú	_ispytestc               ó6   — t        |«       || _        || _        y ©N)r   r=   r>   )ÚselfÚcachedirÚconfigrB   s       r8   Ú__init__zCache.__init__h   s   € ô 	�yÔ!Ø!ˆŒØˆ�ó    c               ó¼   — t        |«       | j                  |d¬«      }|j                  d«      r#|j                  «       r| j	                  |d¬«        | ||d¬«      S )zHCreate the Cache instance for a Config.

        :meta private:
        TrA   Ú
cacheclear)r   Úcache_dir_from_configÚ	getoptionÚis_dirÚclear_cache)ÚclsrG   rB   rF   s       r8   Ú
for_configzCache.for_configo   sW   € ô 	�yÔ!Ø×,Ñ,¨V¸tÐ,ÓDˆØ×Ñ˜LÔ)¨h¯o©oÔ.?Ø�O‰O˜H°ˆOÔ5Ù�8˜V¨tÔ4Ð4rI   c                ó–   — t        |«       | j                  | j                  fD ]#  }||z  }|j                  «       sŒt	        |«       Œ% y)zfClear the sub-directories used to hold cached directories and values.

        :meta private:
        N)r   Ú_CACHE_PREFIX_DIRSÚ_CACHE_PREFIX_VALUESrN   r
   )rP   rF   rB   r   r?   s        r8   rO   zCache.clear_cache{   sF   € ô 	�yÔ!Ø×-Ñ-¨s×/GÑ/GÐHò 	ˆFØ˜6Ñ!ˆAØ�x‰x�zÜ�a•ñ	rI   c               ób   — t        |«       t        | j                  d«      | j                  «      S )zRGet the path to the cache directory for a Config.

        :meta private:
        Ú	cache_dir)r   r	   ÚgetiniÚrootpath)rG   rB   s     r8   rL   zCache.cache_dir_from_config‡   s&   € ô 	�yÔ!Ü §¡¨kÓ :¸F¿O¹OÓLÐLrI   c          	     ó²   — t        |«       ddl}ddlm} |j	                   ||r |j
                  di |¤Žn|«      | j                  j                  d¬«       y)z7Issue a cache warning.

        :meta private:
        r   N)ÚPytestCacheWarningé   )Ú
stacklevel© )r   ÚwarningsÚ_pytest.warning_typesrZ   ÚwarnÚformatr>   Úhook)rE   ÚfmtrB   Úargsr^   rZ   s         r8   r`   z
Cache.warn�   sM   € ô
 	�yÔ!Ûå<à�‰Ù±T˜z˜sŸz™zÑ1¨DÒ1¸sÓCØ�L‰L×ÑØð 	õ 	
rI   c                óJ   — | j                  «        |j                  dd¬«       y )NT)r   r   )Ú&_ensure_cache_dir_and_supporting_filesr#   )rE   r4   s     r8   Ú_mkdirzCache._mkdir    s   € Ø×3Ñ3Ô5Ø�
‰
˜D¨$ˆ
Õ/rI   c                ó²   — t        t        j                  j                  | j	                  |«      «      «      }|j                  | «      st        |›d�«      ‚|S )ae  Join ``name`` onto ``base``, keeping the result inside ``base``.

        ``joinpath()`` lets an absolute or drive-qualified ``name`` replace
        ``base`` outright, and keeps ``..`` segments verbatim. Normalizing
        lexically and re-checking containment rejects both, while still
        allowing a ``..`` that cancels out within ``base``.
        z- is not allowed to escape the cache directory)r   r&   r4   Únormpathr*   Úis_relative_toÚ
ValueError)Úbaser5   r4   s      r8   Ú_join_withinzCache._join_within¤   sL   € ô ”B—G‘G×$Ñ$ T§]¡]°4Ó%8Ó9Ó:ˆØ×"Ñ" 4Ô(Ü ˜xÐ'TÐUÓVÐVØˆrI   c                óÒ   — t        t        |«      j                  «      dkD  rt        d«      ‚| j	                  | j
                  | j                  z  |«      }| j                  |«       |S )aã  Return a directory path object with the given name.

        If the directory does not yet exist, it will be created. You can use
        it to manage files to e.g. store/retrieve database dumps across test
        sessions.

        .. versionadded:: 7.0

        :param name:
            Must be a string not containing a ``/`` separator.
            Make sure the name contains your plugin or application
            identifiers to prevent clashes with other cache users.
        r   z.name is not allowed to contain path separators)Úlenr   Úpartsrk   rm   r=   rS   rg   )rE   r5   Úress      r8   r#   zCache.mkdir²   sY   € ô Œt�D‹z×ÑÓ  1Ò$ÜÐMÓNÐNØ×Ñ §¡°×1HÑ1HÑ HÈ$ÓOˆØ�‰�CÔØˆ
rI   c                óT   — | j                  | j                  | j                  z  |«      S rD   )rm   r=   rT   )rE   Úkeys     r8   Ú_getvaluepathzCache._getvaluepathÆ   s$   € Ø× Ñ  §¡°$×2KÑ2KÑ!KÈSÓQÐQrI   c                óÐ   — | j                  |«      }	 |j                  dd¬«      5 }t        j                  |«      cddd«       S # 1 sw Y   yxY w# t        t
        f$ r |cY S w xY w)aÚ  Return the cached value for the given key.

        If no value was yet cached or the value cannot be read, the specified
        default is returned.

        :param key:
            Must be a ``/`` separated value that does not resolve outside
            the cache directory. Usually the first
            name is the name of your plugin or your application.
        :param default:
            The value to return in case of a cache-miss or invalid cache value.
        ÚrúUTF-8©ÚencodingN)rt   ÚopenÚjsonÚloadrk   r-   )rE   rs   Údefaultr4   Úfs        r8   Úgetz	Cache.getÉ   sc   € ð ×!Ñ! #Ó&ˆð	Ø—‘˜3¨�Ó1ð $°QÜ—y‘y “|÷$÷ $ò $ûäœGÐ$ò 	ØŠNð	ús-   “A ¦A»	A ÁAÁ
A ÁA ÁA%Á$A%c                ór  — | j                  |«      }	 | j                  |j                  «       t        j                  |dd¬«      }	 |j                  |d	¬
«       y# t        $ r#}| j	                  d|› d|› �d¬«       Y d}~yd}~ww xY w# t        $ r#}| j	                  d|› d|› �d¬«       Y d}~yd}~ww xY w)aŒ  Save value for the given key.

        :param key:
            Must be a ``/`` separated value that does not resolve outside
            the cache directory. Usually the first
            name is the name of your plugin or your application.
        :param value:
            Must be of any combination of basic python types,
            including nested types like lists of dictionaries.
        zcould not create cache path z: TrA   NFé   )Úensure_asciiÚindentrw   rx   zcache could not write path )rt   rg   r"   r-   r`   r{   ÚdumpsÚ
write_text)rE   rs   Úvaluer4   ÚexcÚdatas         r8   Úsetz	Cache.setÝ   sÇ   € ð ×!Ñ! #Ó&ˆð	Ø�K‰K˜Ÿ™Ô$ô �z‰z˜%¨e¸AÔ>ˆð	Ø�O‰O˜D¨7ˆOÕ3øô ò 	Ø�I‰IØ.¨t¨f°B°s°eÐ<Øð ô ô ûð	ûô ò 	Ø�I‰IØ-¨d¨V°2°c°UÐ;Øð ÷ ñ ûð	ús/   “A ÁB
 Á	BÁ$BÂBÂ
	B6ÂB1Â1B6c                ód   — | j                   j                  «       st        | j                   «       yy)z.Create the cache dir and its supporting files.N)r=   rN   r9   ©rE   s    r8   rf   z,Cache._ensure_cache_dir_and_supporting_filesú   s#   € à�~‰~×$Ñ$Ô&Ü˜4Ÿ>™>Õ*ð 'rI   N)rF   r   rG   r   rB   ÚboolÚreturnÚNone)rG   r   rB   rŒ   r�   r;   )F)rF   r   rB   rŒ   r�   rŽ   )rG   r   rB   rŒ   r�   r   )rc   ÚstrrB   rŒ   rd   Úobjectr�   rŽ   )r4   r   r�   rŽ   )rl   r   r5   r�   r�   r   )r5   r�   r�   r   )rs   r�   r�   r   )rs   r�   )rs   r�   r†   r�   r�   rŽ   ©r�   rŽ   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚdataclassesÚfieldr=   Ú__annotations__r>   rS   rT   rH   ÚclassmethodrQ   rO   ÚstaticmethodrL   r`   rg   rm   r#   rt   r   r‰   rf   r]   rI   r8   r;   r;   Z   sò   … ñ +à'�k×'Ñ'¨UÔ3€IˆtÓ3Ø'�k×'Ñ'¨UÔ3€GˆVÓ3ð Ðð Ðð DIñØðØ&,ðØ<@ðà	óð Ø=Bô 	5ó ð	5ð ó	ó ð	ð ØCHô Mó ðMð 38õ 
ó 0ð òó ðóó(Róó(ô:+rI   r;   c                  ó<   — e Zd Zdd„Z ed¬«      	 	 	 	 dd„«       Zy)ÚLFPluginCollWrapperc                ó    — || _         d| _        y )NF)ÚlfpluginÚ_collected_at_least_one_failure©rE   rž   s     r8   rH   zLFPluginCollWrapper.__init__  s   € Ø ˆŒØ/4ˆÕ,rI   T)Úwrapperc              #  ó  ‡‡K  — d –—}t        |t        t        z  «      r;| j                  j                  Šdˆfd„}t        |j                  |d¬«      |_        |S t        |t        «      �r|j                  | j                  j                  v rð|j                  }| j                  j                  Š| j                  s`t        ˆfd„|D «       «      s|S | j                  j                  j                  j                  t        | j                  «      d«       d| _
        |j                   }|D �cg c]G  }|j"                  ‰v s5|j%                  |j                  «      st        |t&        j(                  «      r|‘ŒI c}|d d  |S c c}w ­w)Nc                ó    •— | j                   ‰v S rD   )r4   )ÚnodeÚlf_pathss    €r8   Úsort_keyz@LFPluginCollWrapper.pytest_make_collect_report.<locals>.sort_key  s   ø€ Ø—y‘y HÐ,Ð,rI   T©rs   Úreversec              3  ó:   •K  — | ]  }|j                   ‰v –— Œ y ­wrD   ©Úid)Ú.0ÚxÚ
lastfaileds     €r8   ú	<genexpr>zALFPluginCollWrapper.pytest_make_collect_report.<locals>.<genexpr>  s   øè ø€ ÒB°a˜qŸt™t zÔ1ÑBùs   ƒzlfplugin-collskip)r¤   znodes.Item | nodes.Collectorr�   rŒ   )Ú
isinstancer   r   rž   Ú_last_failed_pathsÚsortedÚresultr   r4   r®   rŸ   ÚanyrG   ÚpluginmanagerÚregisterÚLFPluginCollSkipfilesÚsessionr«   Ú
isinitpathr   Ú	Collector)	rE   Ú	collectorrq   r¦   r³   r¸   r­   r®   r¥   s	          @@r8   Úpytest_make_collect_reportz.LFPluginCollWrapper.pytest_make_collect_report  sD  ùè ø€ ò ˆÜ�i¤¬9Ñ!4Ô5à—}‘}×7Ñ7ˆHõ-ô  Ø—
‘
ØØôˆCŒJð> ˆ
ô3 ˜	¤4Õ(Ø�~‰~ §¡×!AÑ!AÑAØŸ™�Ø!Ÿ]™]×5Ñ5�
ð ×;Ò;ÜÓB¸6ÔBÔBØ"˜
Ø—M‘M×(Ñ(×6Ñ6×?Ñ?Ü-¨d¯m©mÓ<Ð>Qôð <@�DÔ8à#×+Ñ+�ð $öàØ—t‘t˜zÑ)à×)Ñ)¨!¯&©&Ô1ä! !¤U§_¡_Ô5ò ò�‘q�	ð ˆ
ùòùs   „D(FÄ,AF Å8FN©rž   ÚLFPluginr�   rŽ   )r»   únodes.Collectorr�   z-Generator[None, CollectReport, CollectReport]©r’   r“   r”   rH   r   r¼   r]   rI   r8   rœ   rœ      s0   „ ó5ñ �dÔð+Ø(ð+à	6ò+ó ñ+rI   rœ   c                  ó.   — e Zd Zdd„Ze	 	 	 	 dd„«       Zy)r·   c                ó   — || _         y rD   )rž   r    s     r8   rH   zLFPluginCollSkipfiles.__init__5  s	   € Ø ˆ�rI   c                óØ   — t        |t        «      rZ|j                  | j                  j                  vr8| j                  xj
                  dz  c_        t        |j                  dd g ¬«      S y )Nr   Úpassed)Úlongreprr³   )r°   r   r4   rž   r±   Ú_skipped_filesr   r«   )rE   r»   s     r8   r¼   z0LFPluginCollSkipfiles.pytest_make_collect_report8  sR   € ô �i¤Ô&Ø�~‰~ T§]¡]×%EÑ%EÑEØ—‘×,Ò,°Ñ1Õ,ä$ Y§\¡\°8ÀdÐSUÔVÐVØrI   Nr½   )r»   r¿   r�   zCollectReport | NonerÀ   r]   rI   r8   r·   r·   4  s+   „ ó!ð ðØ(ðà	òó ñrI   r·   c                  ón   — e Zd ZdZdd„Zdd„Zdd„Zdd„Zdd„Z e	dd¬«      	 	 	 	 	 	 dd	„«       Z
dd
„Zy)r¾   z;Plugin which implements the --lf (run last-failing) option.c                óà  ‡— ‰| _         d}t        ˆfd„|D «       «      | _        ‰j                  sJ ‚‰j                  j	                  di «      j                  «       D ��ci c]  \  }}t        j                  |«      |“Œ c}}| _        d | _	        d | _
        d| _        ‰j                  d«      r;| j                  «       | _        ‰j                  j!                  t#        | «      d«       y y c c}}w )N)ÚlfÚfailedfirstc              3  ó@   •K  — | ]  }‰j                  |«      –— Œ y ­wrD   )rM   )r¬   rs   rG   s     €r8   r¯   z$LFPlugin.__init__.<locals>.<genexpr>J  s   øè ø€ ÒG°C˜&×*Ñ*¨3×/ÑGùs   ƒúcache/lastfailedr   rÉ   zlfplugin-collwrapper)rG   r´   ÚactiveÚcacher   r)   r   Úparser®   Ú_previously_failed_countÚ_report_statusrÆ   rM   Úget_last_failed_pathsr±   rµ   r¶   rœ   )rE   rG   Úactive_keysÚkr@   s    `   r8   rH   zLFPlugin.__init__G  s×   ø€ ØˆŒØ)ˆÜÓG¸;ÔGÓGˆŒØ�|Š|Ðˆ|ð Ÿ™×(Ñ(Ð);¸RÓ@×FÑFÓH÷/
á��1ô �L‰L˜‹O˜QÑó/
ˆŒð 59ˆÔ%Ø*.ˆÔØˆÔà×Ñ˜DÔ!Ø&*×&@Ñ&@Ó&BˆDÔ#Ø× Ñ ×)Ñ)Ü# DÓ)Ð+Aõð "ùó/
s   Á C*c                ó&  — | j                   j                  }t        «       }| j                  D ]=  }||j                  z  }|j                  |«       |j                  |j                  «       Œ? |D �ch c]  }|j                  «       sŒ|’Œ c}S c c}w )zWReturn a set with all Paths of the previously failed nodeids and
        their parents.)	rG   rX   r‰   r®   r4   ÚaddÚupdater   Úexists)rE   rX   r³   Únodeidr4   r­   s         r8   rÒ   zLFPlugin.get_last_failed_pathsZ  su   € ð —;‘;×'Ñ'ˆÜ“ˆØ—o‘oò 	(ˆFØ˜fŸk™kÑ)ˆDØ�J‰J�tÔØ�M‰M˜$Ÿ,™,Õ'ð	(ð "Ö0�a Q§X¡X¥Z’Ò0Ð0ùÒ0s   Á1BÂBc                ót   — | j                   r,| j                  j                  «       dk\  rd| j                  › �S y )Nr   zrun-last-failure: )rÍ   rG   Úget_verbosityrÑ   r‹   s    r8   Úpytest_report_collectionfinishz'LFPlugin.pytest_report_collectionfinishe  s4   € Ø�;Š;˜4Ÿ;™;×4Ñ4Ó6¸!Ò;Ø'¨×(;Ñ(;Ð'<Ð=Ð=ØrI   c                óì   — |j                   dk(  r|j                  s|j                  r'| j                  j	                  |j
                  d «       y |j                  rd| j                  |j
                  <   y y )NÚcallT)ÚwhenrÄ   Úskippedr®   Úpopr«   Úfailed)rE   Úreports     r8   Úpytest_runtest_logreportz!LFPlugin.pytest_runtest_logreportj  sP   € Ø�K‰K˜6Ò! f§m¢m¸¿ºØ�O‰O×Ñ §	¡	¨4Õ0Ø�]Š]Ø)-ˆD�O‰O˜FŸI™IÒ&ð rI   c                ó  — |j                   dv }|rc|j                  }|| j                  v rH| j                  j                  |«       | j                  j	                  d„ |j
                  D «       «       y y d| j                  |j                  <   y )N)rÄ   rà   c              3  ó8   K  — | ]  }|j                   d f–— Œ y­w)TNrª   ©r¬   Úitems     r8   r¯   z0LFPlugin.pytest_collectreport.<locals>.<genexpr>v  s   è ø€ Ò&Q¸4¨¯©°¤Ñ&Qùs   ‚T)Úoutcomer«   r®   rá   r×   r³   )rE   rã   rÄ   Ú	report_ids       r8   Úpytest_collectreportzLFPlugin.pytest_collectreportp  sp   € Ø—‘Ð#8Ð8ˆÙØŸ	™	ˆIØ˜DŸO™OÑ+Ø—‘×#Ñ# IÔ.Ø—‘×&Ñ&Ñ&QÀ6Ç=Á=Ô&QÕQð ,ð *.ˆD�O‰O˜FŸI™IÒ&rI   T©r¡   Útryfirstc              #  óÖ  K  — d –—}| j                   s|S | j                  �rPg }g }|D ]=  }|j                  | j                  v r|j                  |«       Œ-|j                  |«       Œ? t	        |«      | _        |st	        | j                  «      › d�| _        n�| j                  j                  d«      r"||d d  |j                  j                  |¬«       n||z   |d d  | j
                  dk(  rdnd}| j                  j                  d«      rdnd	}d
| j
                  › d|› |› �| _        | j                  dkD  r9| j                  dk(  rdnd}	| xj                  d| j                  › d|	› d�z  c_        |S d| _        | j                  j                  d«      dk(  r;| xj                  dz  c_        |j                  j                  |d d  ¬«       g |d d  |S | xj                  dz  c_        |S ­w)Nz% known failures not in selected testsrÉ   )r)   r   ÚfailureÚfailuresrÊ   z firstÚ zrerun previous ú r   ÚfileÚfilesz
 (skipped ú)zno previously failed tests, Úlast_failed_no_failuresÚnonezdeselecting all items.znot deselecting items.)rÍ   r®   r«   Úappendro   rÐ   rÑ   rG   rM   rb   Úpytest_deselectedrÆ   )
rE   rG   r)   rq   Úpreviously_failedÚpreviously_passedrè   ÚnounÚsuffixÚ
files_nouns
             r8   Úpytest_collection_modifyitemsz&LFPlugin.pytest_collection_modifyitemsz  sô  è ø€ ò ˆà�{Š{ØˆJà�?‹?Ø "ÐØ "ÐØò 3�Ø—7‘7˜dŸo™oÑ-Ø%×,Ñ,¨TÕ2à%×,Ñ,¨TÕ2ð	3ô
 -0Ð0AÓ,BˆDÔ)á$ô ˜4Ÿ?™?Ó+Ð,Ð,QÐRð Õ#ð —;‘;×(Ñ(¨Ô.Ø0�E™!�HØ—K‘K×1Ñ1Ð8IÐ1ÕJà0Ð3DÑD�E™!�Hà$(×$AÑ$AÀQÒ$F‘yÈJ�Ø%)§[¡[×%:Ñ%:¸=Ô%I™Èr�à% d×&CÑ&CÐ%DÀAÀdÀVÈFÈ8ÐTð Ô#ð ×"Ñ" QÒ&Ø'+×':Ñ':¸aÒ'?™VÀW�
Ø×#Ò#¨°D×4GÑ4GÐ3HÈÈ*ÈÐUVÐ'WÑWÕ#ð ˆ
ð #AˆDÔØ�{‰{×$Ñ$Ð%>Ó?À6ÒIØ×#Ò#Ð'?Ñ?Õ#Ø—‘×-Ñ-°E¹!°HÐ-Ô=Ø�‘a�ð ˆ
ð ×#Ò#Ð'?Ñ?Õ#àˆ
ùs   ‚G'G)c                óh  — | j                   }|j                  d«      st        |d«      ry |j                  €J ‚| j                  j                  «       D ��ci c]  \  }}t        |«      |“Œ }}}|j                  j                  di «      }||k7  r|j                  j                  d|«       y y c c}}w )NÚ	cacheshowÚworkerinputrÌ   )	rG   rM   ÚhasattrrÎ   r®   r)   r�   r   r‰   )rE   r¸   rG   rÔ   r@   Úcurrent_lastfailedÚsaved_lastfaileds          r8   Úpytest_sessionfinishzLFPlugin.pytest_sessionfinish®  s¤   € Ø—‘ˆØ×Ñ˜KÔ(¬G°F¸MÔ,JØà�|‰|Ð'Ð'Ð'Ø48·O±O×4IÑ4IÓ4K×L©D¨A¨qœc !›f a™iÐLÐÑLØ!Ÿ<™<×+Ñ+Ð,>ÀÓCÐØÐ1Ò1Ø�L‰L×ÑÐ/Ð1CÕDð 2ùó Ms   ÁB.N©rG   r   r�   rŽ   )r�   z	set[Path])r�   ú
str | None)rã   r   r�   rŽ   )rã   r   r�   rŽ   )rG   r   r)   úlist[nodes.Item]r�   úGenerator[None])r¸   r   r�   rŽ   )r’   r“   r”   r•   rH   rÒ   rÜ   rä   rë   r   rÿ   r  r]   rI   r8   r¾   r¾   D  sX   „ ÙEóó&	1óó
.ó.ñ �d TÔ*ð1Øð1Ø%5ð1à	ò1ó +ð1ôf	ErI   r¾   c                  óJ   — e Zd ZdZd	d„Z edd¬«      d
d„«       Zdd„Zdd„Zy)ÚNFPluginz8Plugin which implements the --nf (run new-first) option.c                óò   — || _         |j                  j                  | _        |j                  €J ‚|j                  j                  dg «      D �ch c]  }t        j                  |«      ’Œ c}| _        y c c}w )Núcache/nodeids)	rG   ÚoptionÚnewfirstrÍ   rÎ   r   r   rÏ   Úcached_nodeids)rE   rG   Úss      r8   rH   zNFPlugin.__init__½  s`   € ØˆŒØ—m‘m×,Ñ,ˆŒØ�|‰|Ð'Ð'Ð'à%+§\¡\×%5Ñ%5°oÀrÓ%Jö,
Ø !ŒF�L‰L˜�Oò,
ˆÕùò ,
s   ÁA4Trì   c              #  ó´  K  — d –—}| j                   r¡i }i }|D ]9  }|j                  | j                  vr|||j                  <   Œ+|||j                  <   Œ; | j                  |j	                  «       «      | j                  |j	                  «       «      z   |d d  | j                  j                  |«       |S | j                  j                  d„ |D «       «       |S ­w)Nc              3  ó4   K  — | ]  }|j                   –— Œ y ­wrD   rª   rç   s     r8   r¯   z9NFPlugin.pytest_collection_modifyitems.<locals>.<genexpr>×  s   è ø€ Ò&A°4 t§w¥wÑ&Aùs   ‚)rÍ   r«   r  Ú_get_increasing_orderÚvaluesr×   )rE   r)   rq   Ú	new_itemsÚother_itemsrè   s         r8   rÿ   z&NFPlugin.pytest_collection_modifyitemsÅ  sÖ   è ø€ âˆà�;Š;Ø24ˆIØ46ˆKØò 0�Ø—7‘7 $×"5Ñ"5Ñ5Ø)-�I˜dŸg™gÒ&à+/�K §¡Ò(ð	0ð ×1Ñ1Ø× Ñ Ó"óà×*Ñ*¨;×+=Ñ+=Ó+?Ó@ñAˆE‘!ˆHð ×Ñ×&Ñ& yÔ1ð ˆ
ð ×Ñ×&Ñ&Ñ&A¸5Ô&AÔAàˆ
ùs   ‚CCc                ó    — t        |d„ d¬«      S )Nc                óJ   — | j                   j                  «       j                  S rD   )r4   ÚstatÚst_mtime)rè   s    r8   ú<lambda>z0NFPlugin._get_increasing_order.<locals>.<lambda>Ü  s   € ¨d¯i©i¯n©nÓ.>×.GÑ.G€ rI   Tr§   )r²   )rE   r)   s     r8   r  zNFPlugin._get_increasing_orderÛ  s   € Ü�eÑ!GÐQUÔVÐVrI   c                ó  — | j                   }|j                  d«      st        |d«      ry |j                  d«      ry |j                  €J ‚|j                  j	                  dt        d„ | j                  D «       «      «       y )Nr  r  Úcollectonlyr  c              3  ó2   K  — | ]  }t        |«      –— Œ y ­wrD   )r�   )r¬   Úns     r8   r¯   z0NFPlugin.pytest_sessionfinish.<locals>.<genexpr>ç  s   è ø€ Ò0U¸A´°Q·Ñ0Uùs   ‚)rG   rM   r  rÎ   r‰   r²   r  )rE   rG   s     r8   r  zNFPlugin.pytest_sessionfinishÞ  sk   € Ø—‘ˆØ×Ñ˜KÔ(¬G°F¸MÔ,JØà×Ñ˜MÔ*Øà�|‰|Ð'Ð'Ð'Ø�‰×Ñ˜¬&Ñ0UÀ×ATÑATÔ0UÓ*UÕVrI   Nr  )r)   r	  r�   r
  )r)   zIterable[nodes.Item]r�   r	  r‘   )	r’   r“   r”   r•   rH   r   rÿ   r  r  r]   rI   r8   r  r  º  s1   „ ÙBó
ñ �d TÔ*òó +ðó*Wô	WrI   r  c           	     óâ  — | j                  d«      }|j                  ddddd¬«       |j                  dd	dd
d¬«       |j                  ddddd¬«       |j                  ddddd¬«       |j                  dddd¬«       d}dt        j                  v r1t        j                  j                  t        j                  d   |«      }| j                  d|d¬«       |j                  ddd d!d"d#d$¬%«       y&)'zxAdd command-line options for cache functionality.

    :param parser: Parser object to add command-line options to.
    Úgeneralz--lfz--last-failedÚ
store_truerÉ   zHRerun only the tests that failed at the last run (or all if none failed))ÚactionÚdestÚhelpz--ffz--failed-firstrÊ   zyRun all tests, but run the last failures first. This may re-order tests and thus lead to repeated fixture setup/teardown.z--nfz--new-firstr  zORun tests from new files first, then the rest of the tests sorted by file mtimez--cache-showrø   ú?r  z_Show cache contents, don't perform collection or tests. Optional argument: glob (default: '*').)r%  Únargsr&  r'  z--cache-clearrK   z.Remove all cache contents at start of test runú.pytest_cacheÚTOX_ENV_DIRrV   zCache directory path)r}   r'  z--lfnfz--last-failed-no-failuresÚstorerö   )Úallr÷   r-  a  With ``--lf``, determines whether to execute tests when there are no previously (known) failures or when no cached ``lastfailed`` data was found. ``all`` (the default) runs the full test suite again. ``none`` just emits a message about no known failures and exits successfully.)r%  r&  Úchoicesr}   r'  N)ÚgetgroupÚ	addoptionr&   Úenvironr4   ÚjoinÚaddini)ÚparserÚgroupÚcache_dir_defaults      r8   Úpytest_addoptionr7  ê  s-  € ð
 �O‰O˜IÓ&€EØ	‡O�OØØØØØWð ô ð 
‡O�OØØØØð+ð ô ð 
‡O�OØØØØðð ô ð 
‡O�OØØØØð6ð ô 	ð 
‡O�OØØØØ=ð	 ô ð (ÐØœŸ
™
Ñ"ÜŸG™GŸL™L¬¯©°MÑ)BÐDUÓVÐØ
‡M�M�+Ð'8Ð?U€MÔVØ	‡O�OØØ#ØØ&ØØðXð õ rI   c                ó‚   — | j                   j                  r)| j                   j                  sddlm}  || t        «      S y )Nr   )Úwrap_session)r  r  r'  Ú_pytest.mainr9  )rG   r9  s     r8   Úpytest_cmdline_mainr;  +  s.   € Ø‡}�}×Ò v§}¡}×'9Ò'9Ý-á˜F¤IÓ.Ð.ØrI   T)rí   c                óÐ   — t         j                  | d¬«      | _        | j                  j	                  t        | «      d«       | j                  j	                  t        | «      d«       y)zñConfigure cache system and register related plugins.

    Creates the Cache instance and registers the last-failed (LFPlugin)
    and new-first (NFPlugin) plugins with the plugin manager.

    :param config: pytest configuration object.
    TrA   rž   ÚnfpluginN)r;   rQ   rÎ   rµ   r¶   r¾   r  )rG   s    r8   Úpytest_configurer>  3  sQ   € ô ×#Ñ# F°dÐ#Ó;€F„LØ
×Ñ×!Ñ!¤(¨6Ó"2°JÔ?Ø
×Ñ×!Ñ!¤(¨6Ó"2°JÕ?rI   c                ó^   — | j                   j                  €J ‚| j                   j                  S )ab  Return a cache object that can persist state between testing sessions.

    cache.get(key, default)
    cache.set(key, value)

    Keys must be ``/`` separated strings, where the first part is usually the
    name of your plugin or application to avoid clashes with other cache users.

    Values can be any object handled by the json stdlib module.
    )rG   rÎ   )Úrequests    r8   rÎ   rÎ   A  s*   € ð �>‰>×ÑÐ+Ð+Ð+Ø�>‰>×ÑÐrI   c                ó
  — | j                   j                  dkD  s| j                  d«      dk7  rE| j                  €J ‚| j                  j                  }	 |j                  | j                  «      }d|› �S y# t        $ r |}Y Œw xY w)z6Display cachedir with --cache-show and if non-default.r   rV   r*  Nú
cachedir: )r  ÚverboserW   rÎ   r=   Úrelative_torX   rk   )rG   rF   Údisplaypaths      r8   Úpytest_report_headerrF  Q  s„   € à‡}�}×Ñ˜qÒ  F§M¡M°+Ó$>À/Ò$QØ�|‰|Ð'Ð'Ð'Ø—<‘<×)Ñ)ˆð	#Ø"×.Ñ.¨v¯©Ó?ˆKð ˜K˜=Ð)Ð)Øøô ò 	#Ø"ŠKð	#ús   ÁA4 Á4BÂBc                ób  ‡— ddl m} | j                  €J ‚t        «       }|j	                  dt        | j                  j                  «      z   «       | j                  j                  j                  «       s|j	                  d«       y| j                  j                  d   Š‰€dŠdˆfd„}t        «       }| j                  j                  }|t        j                  z  }|j                  dd‰›�«       t         ||«      «      D ]”  }t        |j                  |«      «      }	| j                  j!                  |	|«      }
|
|u r|j	                  |	› d	�«       ŒR|j	                  |	› d
�«        ||
«      j#                  «       D ]  }|j	                  d|z   «       Œ Œ– |t        j$                  z  }|j                  «       rs|j                  dd‰›�«       t         ||«      «      D ]J  }t        |j                  |«      «      }	|j	                  |	› d|j'                  «       j(                  › �«       ŒL y)a}  Display cache contents when --cache-show is used.

    Shows cached values and directories matching the specified glob pattern
    (default: '*'). Displays cache location, cached test results, and
    any cached directories created by plugins.

    :param config: pytest configuration object.
    :param session: pytest session object.
    :returns: Exit code (0 for success).
    r   )ÚpformatrB  zcache is emptyÚ*c              3  óÔ   •K  — | j                  ‰«      D ]O  }|j                  «       sŒt        t        j                  j                  |«      «      j                  | «      sŒL|–— ŒQ y­w)z”Glob for files under `base`, discarding matches that escape it.

        A glob may contain `..` segments, which `rglob()` happily follows.
        N)ÚrglobÚis_filer   r&   r4   ri   rj   )rl   r­   Úglobs     €r8   Ú	globfileszcacheshow.<locals>.globfilesz  sP   øè ø€ ð
 —‘˜DÓ!ò 	ˆAØ�y‰y�{œt¤B§G¡G×$4Ñ$4°QÓ$7Ó8×GÑGÈÕMØ“ñ	ùs   ƒ%A(©7A(Á!A(ú-zcache values for z- contains unreadable content, will be ignoredz
 contains:z  zcache directories for z is a file of length )rl   r   r�   zIterable[Path])ÚpprintrH  rÎ   r   Úliner�   r=   rN   r  r  r�   r;   rT   Úsepr²   rD  r   Ú
splitlinesrS   r  Úst_size)rG   r¸   rH  ÚtwrN  ÚdummyÚbasedirÚvdirÚvalpathrs   ÚvalrQ  ÚddirÚprM  s                 @r8   r  r  a  sì  ø€ õ à�<‰<Ð#Ð#Ð#ä	Ó	€BØ‡G�GˆLœ3˜vŸ|™|×5Ñ5Ó6Ñ6Ô7Ø�<‰<×!Ñ!×(Ñ(Ô*Ø
�‰Ð Ô!Øà�=‰=×"Ñ" 1Ñ%€DØ€|Øˆõô ‹H€EØ�l‰l×$Ñ$€GØ”U×/Ñ/Ñ/€DØ‡F�Fˆ3Ð# D 8Ð,Ô-Ü™) D›/Ó*ò %ˆÜ�'×%Ñ% dÓ+Ó,ˆØ�l‰l×Ñ˜s EÓ*ˆØ�%‰<Ø�G‰G�s�eÐHÐIÕJà�G‰G�s�e˜:Ð&Ô'Ù ›×/Ñ/Ó1ò %�Ø—‘˜˜t™Õ$ñ%ð%ð ”U×-Ñ-Ñ-€DØ‡{�{„}Ø
�‰ˆsÐ,¨T¨HÐ5Ô6Ü™	 $›Ó(ò 	EˆAÜ�a—m‘m GÓ,Ó-ˆCØ�G‰G�s�eÐ0°·±³×1AÑ1AÐ0BÐCÕDð	Eð rI   )r3   r   r�   rŽ   )r4  r   r�   rŽ   )rG   r   r�   zint | ExitCode | Noner  )r@  r   r�   r;   )rG   r   r�   r  )rG   r   r¸   r   r�   Úint);r•   Ú
__future__r   Úcollections.abcr   r   r–   r.   r{   r&   Úpathlibr   r1   r$   Útypingr   r	   r
   Úreportsr   Ú_pytestr   Ú_pytest._ior   Ú_pytest.configr   r   r   Ú_pytest.config.argparsingr   Ú_pytest.deprecatedr   Ú_pytest.fixturesr   r   r:  r   Ú_pytest.nodeidr   Ú_pytest.nodesr   r   Ú_pytest.reportsr   r   r˜   r9   Ú	dataclassr;   rœ   r·   r¾   r  r7  r;  r>  rÎ   rF  r  r]   rI   r8   ú<module>rm     s!  ðâ +õ #å %Ý $Û Û Û Û 	Ý Û Û Ý å %Ý Ý "Ý Ý &Ý !Ý #Ý #Ý ,Ý -Ý $Ý +Ý  Ý !Ý #Ý Ý &ð	ð =ðñ$€Ð ó ó*0ð> Ø×Ñ÷a+ð a+ó ó ða+÷H1ñ 1÷hñ ÷ sEñ sE÷l-Wñ -Wó`>óBñ 
�4Ôò
@ó ð
@ð 	ò ó 	ð óô 6rI   