
    !hi;              	          d dl Z d dlZd dlZd dlmZ ddZd Zedk(  rd e j                  d      Z	e	j                  dd	d
       e	j                  ej                        \  ZZ ej                   eei  ee             yy)    N)importlib_metadatac                     t        | t              r| g} g }t        j                  dd      D ]:  | rt	        fd| D              s|t         j                                      z  }< |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).
    pyinstaller40tests)groupnamec              3   T   K   | ]  }j                   j                  |       ! y wN)module
startswith).0r   entry_points     GC:\des-py\Monitor\venv\Lib\site-packages\PyInstaller/utils/run_tests.py	<genexpr>z paths_to_test.<locals>.<genexpr>%   s"     P4;%%006Ps   %()
isinstancestrr   entry_pointsanylistload)include_onlytest_path_listr   s     @r   paths_to_testr      ss     ,$$~ N)66_SZ[ 9 P<PPd#5;#3#3#5#788N9     c            	          t        |j                  dd             }|st        dt        j                         yt        ddj                  g || dd        z          t        j                  g || dd  fi |S )	Nr   )r   zError: no tests discovered.)file   zpytest     )r   popprintsysstderrjoinpytestmain)argskwargspathss      r   
run_pytestr*   -   s|    vzz.$'GHE+#**=  	i#((#6U#6T!"X#6778{{.U.T!"X.9&99r   __main__z Run PyInstaller packaging tests.)descriptionz--include_onlyappendz*Only run tests from the specified package.)actionhelpr
   )argparser"   r%   PyInstaller.compatr   r   r*   __name__ArgumentParserparseradd_argumentparse_known_argsargvr'   unknownexitvars r   r   <module>r<      s     
  12: z$X$$1STF
9  
 ++CHH5MD'CHHZ/DJ/0 r   