403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/test.cpython-39.opt-1.pyc
a

��e��@s�ddlZddlZddlZddlZddlZddlZddlmZmZddl	m
Z
ddlmZddlm
Z
mZmZmZmZmZmZddlmZddlmZdd	lmZdd
lmZGdd�de�ZGd
d�d�ZGdd�de�ZdS)�N)�DistutilsError�DistutilsOptionError)�log)�
TestLoader)�resource_listdir�resource_exists�normalize_path�working_set�evaluate_marker�add_activation_listener�require�)�metadata)�Command)�unique_everseen)�	pass_nonec@seZdZdd�Zddd�ZdS)�ScanningLoadercCst�|�t�|_dS�N)r�__init__�set�_visited��self�r�;/usr/lib/python3.9/site-packages/setuptools/command/test.pyrs
zScanningLoader.__init__NcCs�||jvrdS|j�|�g}|�t�||��t|d�rH|�|���t|d�r�t|jd�D]`}|�	d�r�|dkr�|jd|dd�}n"t
|j|d	�r^|jd|}nq^|�|�|��q^t|�d
kr�|�
|�S|dSdS)aReturn a suite of all tests cases contained in the given module

        If the module is a package, load tests from all the modules in it.
        If the module has an ``additional_tests`` function, call it and add
        the return value to the tests.
        N�additional_tests�__path__�z.pyz__init__.py�.���z/__init__.py�r)r�add�appendr�loadTestsFromModule�hasattrrr�__name__�endswithrZloadTestsFromName�lenZ
suiteClass)r�module�patternZtests�fileZ	submodulerrrr#s$



z"ScanningLoader.loadTestsFromModule)N)r%�
__module__�__qualname__rr#rrrrrsrc@seZdZdd�Zddd�ZdS)�NonDataPropertycCs
||_dSr��fget)rr/rrrrCszNonDataProperty.__init__NcCs|dur|S|�|�Srr.)r�objZobjtyperrr�__get__FszNonDataProperty.__get__)N)r%r+r,rr1rrrrr-Bsr-c@s�eZdZdZdZgd�Zdd�Zdd�Zedd	��Z	d
d�Z
dd
�Zej
ddd��Zeej
dd���Zedd��Zdd�Zdd�Zedd��Zeedd���ZdS)�testz.Command to run unit tests after in-place buildz0run unit tests after in-place build (deprecated)))ztest-module=�mz$Run 'test_suite' in specified module)ztest-suite=�sz9Run single test, case or suite (e.g. 'module.test_suite'))ztest-runner=�rzTest runner to usecCsd|_d|_d|_d|_dSr)�
test_suite�test_module�test_loader�test_runnerrrrr�initialize_options[sztest.initialize_optionscCs�|jr|jrd}t|��|jdurD|jdur8|jj|_n|jd|_|jdur^t|jdd�|_|jdurnd|_|jdur�t|jdd�|_dS)Nz1You may specify a module or a suite, but not bothz.test_suiter8z&setuptools.command.test:ScanningLoaderr9)r6r7r�distributionr8�getattrr9)r�msgrrr�finalize_optionsas




ztest.finalize_optionscCst|���Sr)�list�
_test_argsrrrr�	test_argsssztest.test_argsccs*|jsdV|jrdV|jr&|jVdS)NZdiscoverz	--verbose)r6�verboserrrrr@wsztest._test_argscCs2|���|�Wd�n1s$0YdS)zI
        Backward compatibility for project_on_sys_path context.
        N)�project_on_sys_path)r�funcrrr�with_project_on_sys_paths
ztest.with_project_on_sys_pathrc
cs|�d�|jddd�|�d�|�d�}tjdd�}tj��}z�t|j�}tj�	d|�t
��tdd��t
d|j|jf�|�|g��dVWd�n1s�0YW|tjdd�<tj��tj�|�t
��n.|tjdd�<tj��tj�|�t
��0dS)	NZegg_infoZ	build_extr )ZinplacercSs|��Sr)Zactivate)�distrrr�<lambda>��z*test.project_on_sys_path.<locals>.<lambda>z%s==%s)Zrun_commandZreinitialize_commandZget_finalized_command�sys�path�modules�copyrZegg_base�insertr	rrrZegg_nameZegg_version�paths_on_pythonpath�clear�update)rZ
include_distsZei_cmdZold_pathZold_modulesZproject_pathrrrrC�s,




&

�
ztest.project_on_sys_pathc
cs�t�}tj�d|�}tj�dd�}zdtj�t|��}td||g�}tj�|�}|r\|tjd<dVW||ur|tj�dd�q�|tjd<n$||ur�tj�dd�n
|tjd<0dS)z�
        Add the indicated paths to the head of the PYTHONPATH environment
        variable so that subprocesses will also see the packages at
        these paths.

        Do this in a context that restores the value on exit.
        Z
PYTHONPATHrN)	�object�os�environ�get�pathsep�joinr�filter�pop)�pathsZnothingZorig_pythonpathZcurrent_pythonpath�prefixZto_join�new_pathrrrrN�s 

�ztest.paths_on_pythonpathcCsD|�|j�}|�|jpg�}|�dd�|j��D��}t�|||�S)z�
        Install the requirements indicated by self.distribution and
        return an iterable of the dists that were built.
        css0|](\}}|�d�rt|dd��r|VqdS)�:r N)�
startswithr
)�.0�k�vrrr�	<genexpr>�s�z%test.install_dists.<locals>.<genexpr>)Zfetch_build_eggsZinstall_requiresZ
tests_requireZextras_require�items�	itertools�chain)rFZir_dZtr_dZer_drrr�
install_dists�s
�ztest.install_distsc	Cs�|�dtj�|�|j�}d�|j�}|jr>|�d|�dS|�d|�tt	�
d�|�}|�|��@|���|�
�Wd�n1s�0YWd�n1s�0YdS)Nz�WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.� zskipping "%s" (dry run)zrunning "%s"�location)�announcerZWARNrer;rV�_argv�dry_run�map�operator�
attrgetterrNrC�	run_tests)rZinstalled_dists�cmdrYrrr�run�s�
ztest.runcCsVtjdd|j|�|j�|�|j�dd�}|j��sRd|j}|�|t	j
�t|��dS)NF)Z
testLoaderZ
testRunner�exitzTest failed: %s)�unittest�mainri�_resolve_as_epr8r9�resultZ
wasSuccessfulrhrZERRORr)rr2r=rrrrn�s

�

ztest.run_testscCsdg|jS)Nrr)rArrrrri�sz
test._argvcCstj|ddd����S)zu
        Load the indicated attribute value, called, as a as if it were
        specified as an entry point.
        N)�value�name�group)rZ
EntryPoint�load)�valrrrrt�sztest._resolve_as_epN)r)r%r+r,�__doc__�descriptionZuser_optionsr:r>r-rAr@rE�
contextlib�contextmanagerrC�staticmethodrNrerprn�propertyrirrtrrrrr2Ls.



r2)rRrlrIr}rcrrZdistutils.errorsrr�	distutilsrrZ
pkg_resourcesrrrr	r
rrZ
_importlibrZ
setuptoolsrZ setuptools.extern.more_itertoolsrZ"setuptools.extern.jaraco.functoolsrrr-r2rrrr�<module>s $	(

Youez - 2016 - github.com/yon3zu
LinuXploit