zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
U
X±d ã@s~ddlZddlZddlZddlZd dd„Zdd„ZedkrzejddZej    d    d
d d e 
ej ¡\Z Z e ee ee ƒŽ¡dS)éNcsVt|tƒr|g}g}t dd¡D]0‰|r>t‡fdd„|Dƒƒr |tˆ ¡ƒƒ7}q |S)a(
    If ``include_only`` is falsey, this functions returns paths from all entry points. Otherwise, this parameter
    must be a string or sequence of strings. In this case, this function will return *only* paths from entry points
    whose ``module_name`` begins with the provided string(s).
    Z pyinstaller40Útestsc3s|]}ˆj |¡VqdS)N)Ú module_nameÚ
startswith)Ú.0Úname©Ú entry_point©úRd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PyInstaller/utils/run_tests.pyÚ    <genexpr>$sz paths_to_test.<locals>.<genexpr>)Ú
isinstanceÚstrÚ pkg_resourcesÚiter_entry_pointsÚanyÚlistÚload)Ú include_onlyZtest_path_listr    rr
Ú paths_to_tests
ÿýrcOsdt| dd¡d}|s(tdtjddStdd ||dd…•¡ƒtj||dd…•f|ŽSdS)    Nr)rzError: no tests discovered.)Úfileézpytest ú é)rÚpopÚprintÚsysÚstderrÚjoinÚpytestÚmain)ÚargsÚkwargsÚpathsr    r    r
Ú
run_pytest,s r#Ú__main__z Run PyInstaller packaging tests.)Ú descriptionz--include_onlyÚappendz*Only run tests from the specified package.)ÚactionÚhelp)N)Úargparserrrrr#Ú__name__ÚArgumentParserÚparserÚ add_argumentZparse_known_argsÚargvr ÚunknownÚexitÚvarsr    r    r    r
Ú<module> s
 ý