hyb
2025-12-31 6cdcd01f77e11b72c323603e27ebdb85b15223c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Ë
hñúh2ãóŒ—dZddlZddlZddlZddlZddlmZejjZejjZ    ejjZ
ejjZ ejjddgd¬«Z ejjddgd¬«Z d    efd
„Zd    efd „Zd efd „Zdd„Zy)zS
Decorators for skipping PyInstaller tests when specific requirements are not met.
éN)Úcheck_requirementÚ pyi_builderÚonedirT)ÚindirectÚonefileÚpackagecó¨—t|«s#tjjd|›d«Stjj    dd|›d¬«S)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.
    zCan't import 'z'.Fú Don't skip: 'z' is importable.©Úreason)Ú
importableÚpytestÚmarkÚskipÚskipif)rs úJH:\Change_password\venv_build\Lib\site-packages\PyInstaller/utils/tests.pyÚ importorskipr"sN€ô gÔ Ü{‰{×Ñ .°°    ¸Р<Ó=Ð=Ü ;‰;× Ñ ˜e¨m¸G¸9ÐDTÐ,UÐ Ó VÐVócóΗddlm}d|vrRt|jd«d«syddlm}m}|tjdd|zg||¬«jdk(S||«duS)    Nr)Ú    find_specú.F)ÚDEVNULLÚrunz-czimport )ÚstdoutÚstderr)
Úimportlib.utilrr ÚsplitÚ
subprocessrrÚsysÚ
executableÚ
returncode)rrrrs    rr r 5sf€Ý(ð ˆg~ä˜'Ÿ-™-¨Ó,¨QÑ/Ô0Øç+Ù”C—N‘N D¨)°gÑ*=Ð>ÀwÐW^Ô_×jÑjÐnoÑoÐoá WÓ  TÐ )Ð)rÚ requirementcó¨—t|«r%tjjdd|›d¬«Stjj    d|›d«S)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)rrrrr)r"s rÚrequiresr$EsM€ô˜Ô%܏{‰{×!Ñ! %°-À ¸}ÈOÐ0\Ð!Ó]Ð]ä{‰{×Ñ )¨K¨=¸Р:Ó;Ð;rcóҗtj«dd}|r|dz|z}|jdd«}||dzz }tj|«}|j |d¬«|S)    a˜
    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.pyzutf-8)Úencoding)ÚinspectÚstackÚreplaceÚtextwrapÚdedentÚ
write_text)Útmp_pathÚsourceÚtest_idÚtestnameÚ
scriptfiles     rÚgen_sourcefiler6Xst€ô}‰}‹˜qÑ! !Ñ$€HÙà˜d‘? WÑ,ˆð×Ñ  SÓ)€HؘX¨Ñ-Ñ.€JÜ _‰_˜VÓ $€FØ×ј&¨7ÐÔ3Ø Ðr)N)Ú__doc__r+rr.rÚPyInstaller.utils.hooksrrÚ parametrizerÚxfailrÚ onedir_onlyÚ onefile_onlyÚstrrr r$r6©rrú<module>r?sÀðñóÛ
Ûã å5ðk‰k×%Ñ%€ Ø    ‰×    Ñ    €Ø ‰ ×Ñ€Ø ‡{{×Ñ€ðk‰k×%Ñ% m°h°ZÈ$Ð%ÓO€ ؏{‰{×&Ñ& }°y°kÈDÐ&ÓQ€ ðW˜#óWð& *˜ó *ð <˜#ó<ô&r