ó
    ¯i2  ã                   óˆ  • S r SSKrSSKrSSKrSSKrSSKJr  \R                  R                  r\R                  R                  r	\R                  R                  r
\R                  R                  r\R                  R                  SS/SS9r\R                  R                  SS/SS9rS	\4S
 jrS	\4S jrS\4S jrSS jrg)zS
Decorators for skipping PyInstaller tests when specific requirements are not met.
é    N)Úcheck_requirementÚpyi_builderÚonedirT)ÚindirectÚonefileÚpackagec                 ó¬   • [        U 5      (       d#  [        R                  R                  SU  S35      $ [        R                  R	                  SSU  S3S9$ )a³  
Skip a decorated test if **package** is not importable.

Arguments:
    package:
        The name of the module. May be anything that is allowed after the ``import`` keyword. e.g. 'numpy' or
        'PIL.Image'.
Returns:
    A pytest marker which either skips the test or does nothing.

This function intentionally does not import the module. Doing so can lead to `sys.path` and `PATH` being
polluted, which then breaks later builds.
zCan't import 'z'.FúDon't skip: 'z' is importable.©Úreason)Ú
importableÚpytestÚmarkÚskipÚskipif)r   s    ÚDC:\des-py\RoboSAPF\venv\Lib\site-packages\PyInstaller/utils/tests.pyÚimportorskipr   "   sQ   € ô �g×ÑÜ�{‰{×Ñ .°°	¸Ð <Ó=Ð=Ü�;‰;×Ñ˜e¨m¸G¸9ÐDTÐ,UÐÐVÐVó    c                 óÔ   • SSK Jn  SU ;   aS  [        U R                  S5      S   5      (       d  gSSKJnJn  U" [        R                  SSU -   /X"S9R                  S:H  $ U" U 5      S L$ )	Nr   )Ú	find_specÚ.F)ÚDEVNULLÚrunz-czimport )ÚstdoutÚstderr)
Úimportlib.utilr   r   ÚsplitÚ
subprocessr   r   ÚsysÚ
executableÚ
returncode)r   r   r   r   s       r   r   r   5   sf   € Ý(ð ˆgƒ~ä˜'Ÿ-™-¨Ó,¨QÑ/×0Ñ0Øç+Ù”C—N‘N D¨)°gÑ*=Ð>ÀwÑ_×jÑjÐnoÑoÐoá�WÓ TÐ)Ð)r   Úrequirementc                 ó¬   • [        U 5      (       a"  [        R                  R                  SSU  S3S9$ [        R                  R	                  SU  S35      $ )a‚  
Mark a test to be skipped if **requirement** is not satisfied.

Args:
    requirement:
        A distribution name and optional version specifier(s). See :func:`PyInstaller.utils.hooks.check_requirement`
        which this argument is forwarded to.
Returns:
    Either a skip marker or a dummy marker.

This function operates on distribution metadata, and does not import any modules.
Fr
   z' is satisfied.r   z	Requires r   )r   r   r   r   r   )r"   s    r   Úrequiresr$   E   sP   € ô ˜×%Ñ%Ü�{‰{×!Ñ! %°-À¸}ÈOÐ0\Ð!Ð]Ð]ä�{‰{×Ñ )¨K¨=¸Ð :Ó;Ð;r   c                 óØ   • [         R                  " 5       S   S   nU(       a  US-   U-   nUR                  SS5      nXS-   -  n[        R                  " U5      nUR                  USS9  U$ )	at  
Generate a source file for testing.

The source will be written into a file named like the test-function. This file will then be passed to
`test_script`. If you need other related file, e.g. as `.toc`-file for testing the content, put it at at the
normal place. Just mind to take the basnename from the test-function's name.

:param script: Source code to create executable from. This will be saved into a temporary file which is then
               passed on to `test_script`.

:param test_id: Test-id for parametrized tests. If given, it will be appended to the script filename,
                separated by two underscores.
é   é   Ú__r   Ú_z.pyzutf-8)Úencoding)ÚinspectÚstackÚreplaceÚtextwrapÚdedentÚ
write_text)Útmp_pathÚsourceÚtest_idÚtestnameÚ
scriptfiles        r   Úgen_sourcefiler6   X   sr   € ô �}Š}‹˜qÑ! !Ñ$€HÞà˜d‘? WÑ,ˆð ×Ñ  SÓ)€HØ¨Ñ-Ñ.€JÜ�_Š_˜VÓ$€FØ×Ñ˜&¨7ÐÑ3ØÐr   )N)Ú__doc__r+   r   r.   r   ÚPyInstaller.utils.hooksr   r   Úparametrizer   Úxfailr   Úonedir_onlyÚonefile_onlyÚstrr   r   r$   r6   © r   r   Ú<module>r?      sÀ   ðñó Û 
Û ã å 5ð �k‰k×%Ñ%€Ø	�‰×	Ñ	€Ø�‰×Ñ€Ø‡{�{×Ñ€ð �k‰k×%Ñ% m°h°ZÈ$Ð%ÐO€Ø�{‰{×&Ñ& }°y°kÈDÐ&ÐQ€ðW˜#ô Wð&*˜ô *ð <˜#ô <õ&r   