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.7/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/setuptools/command/__pycache__/test.cpython-37.opt-2.pyc
B

�a��@s�ddlZddlZddlZddlZddlZddlZddlmZmZddl	m
Z
ddlmZddlm
Z
mZmZmZmZmZmZmZddlmZddlmZGdd	�d	e�ZGd
d�d�ZGdd
�d
e�ZdS)�N)�DistutilsError�DistutilsOptionError)�log)�
TestLoader)�resource_listdir�resource_exists�normalize_path�working_set�evaluate_marker�add_activation_listener�require�
EntryPoint)�Command)�unique_everseenc@seZdZdd�Zddd�ZdS)�ScanningLoadercCst�|�t�|_dS)N)r�__init__�set�_visited)�self�r�;/usr/lib/python3.7/site-packages/setuptools/command/test.pyrs
zScanningLoader.__init__NcCs�||jkrdS|j�|�g}|�t�||��t|d�rH|�|���t|d�r�xpt|jd�D]`}|�	d�r�|dkr�|jd|dd�}n"t
|j|d�r`|jd|}nq`|�|�|��q`Wt|�d	kr�|�
|�S|d
SdS)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	submodulerrrrs$



z"ScanningLoader.loadTestsFromModule)N)r!�
__module__�__qualname__rrrrrrrsrc@seZdZdd�Zddd�ZdS)�NonDataPropertycCs
||_dS)N)�fget)rr*rrrrBszNonDataProperty.__init__NcCs|dkr|S|�|�S)N)r*)r�objZobjtyperrr�__get__EszNonDataProperty.__get__)N)r!r'r(rr,rrrrr)Asr)c@s�eZdZdZdddgZdd�Zdd�Zed	d
��Zdd�Z	d
d�Z
ejgfdd��Z
eejdd���Zedd��Zdd�Zdd�Zedd��Zedd��ZdS)�testz0run 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|_dS)N)�
test_suite�test_module�test_loader�test_runner)rrrr�initialize_optionsZsztest.initialize_optionscCs�|jr|jrd}t|��|jdkrD|jdkr8|jj|_n|jd|_|jdkr^t|jdd�|_|jdkrnd|_|jdkr�t|jdd�|_dS)Nz1You may specify a module or a suite, but not bothz.test_suiter3z&setuptools.command.test:ScanningLoaderr4)r1r2r�distributionr3�getattrr4)r�msgrrr�finalize_options`s




ztest.finalize_optionscCst|���S)N)�list�
_test_args)rrrr�	test_argsssztest.test_argsccs4|jstjdkrdV|jr"dV|jr0|jVdS)N)��Zdiscoverz	--verbose)r1�sys�version_info�verbose)rrrrr;wsztest._test_argsc	Cs|���|�WdQRXdS)N)�project_on_sys_path)r�funcrrr�with_project_on_sys_paths
ztest.with_project_on_sys_pathc
cs�|�d�|jddd�|�d�|�d�}tjdd�}tj��}zbt|j�}tj�	d|�t
��tdd��t
d|j|jf�|�|g��dVWdQRXWd|tjdd�<tj��tj�|�t
��XdS)	NZegg_infoZ	build_extr)ZinplacercSs|��S)N)Zactivate)�distrrr�<lambda>��z*test.project_on_sys_path.<locals>.<lambda>z%s==%s)Zrun_commandZreinitialize_commandZget_finalized_commandr?�path�modules�copyrZegg_base�insertr	rrrZegg_nameZegg_version�paths_on_pythonpath�clear�update)rZ
include_distsZei_cmdZold_pathZold_modulesZproject_pathrrrrB�s$





ztest.project_on_sys_pathc
cs�t�}tj�d|�}tj�dd�}zBtj�t|��}td||g�}tj�|�}|r\|tjd<dVWd||kr~tj�dd�n
|tjd<XdS)NZ
PYTHONPATHr)	�object�os�environ�get�pathsep�joinr�filter�pop)�pathsZnothingZorig_pythonpathZcurrent_pythonpath�prefixZto_join�new_pathrrrrL�s


ztest.paths_on_pythonpathcCsD|�|j�}|�|jpg�}|�dd�|j��D��}t�|||�S)Ncss0|](\}}|�d�rt|dd��r|VqdS)�:rN)�
startswithr
)�.0�k�vrrr�	<genexpr>�sz%test.install_dists.<locals>.<genexpr>)Zfetch_build_eggsZinstall_requiresZ
tests_requireZextras_require�items�	itertools�chain)rEZir_dZtr_dZer_drrr�
install_dists�sztest.install_distsc
Cs�|�dtj�|�|j�}d�|j�}|jr>|�d|�dS|�d|�tt	�
d�|�}|�|��"|���|�
�WdQRXWdQRXdS)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)�announcerZWARNrcr6rT�_argvZdry_run�map�operator�
attrgetterrLrB�	run_tests)rZinstalled_dists�cmdrWrrr�run�s
ztest.runcCsVtjdd|j|�|j�|�|j�dd�}|j��sRd|j}|�|t	j
�t|��dS)NF)Z
testLoaderZ
testRunner�exitzTest failed: %s)�unittest�mainrg�_resolve_as_epr3r4�resultZ
wasSuccessfulrfrZERRORr)rr-r8rrrrk�s



ztest.run_testscCsdg|jS)Nro)r<)rrrrrg�sz
test._argvcCs$|dkrdSt�d|�}|���S)Nzx=)r
�parseZresolve)�valZparsedrrrrq�sztest._resolve_as_epN)r!r'r(�descriptionZuser_optionsr5r9r)r<r;rD�
contextlib�contextmanagerrB�staticmethodrLrcrmrk�propertyrgrqrrrrr-Ks$r-)rPrir?rvraroZdistutils.errorsrrZ	distutilsrrZ
pkg_resourcesrrrr	r
rrr
Z
setuptoolsrZ setuptools.extern.more_itertoolsrrr)r-rrrr�<module>s(
(

Youez - 2016 - github.com/yon3zu
LinuXploit