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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/setuptools/command/__pycache__/test.cpython-36.opt-2.pyc
3

��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)�ScanningLoadercCstj|�t�|_dS)N)r�__init__�set�_visited)�self�r�/usr/lib/python3.6/test.pyrs
zScanningLoader.__init__NcCs�||jkrdS|jj|�g}|jtj||��t|d�rH|j|j��t|d�r�xpt|jd�D]`}|j	d�r�|dkr�|jd|dd�}n"t
|j|d�r`|jd|}nq`|j|j|��q`Wt|�d	kr�|j
|�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	submodulerrrr s$



z"ScanningLoader.loadTestsFromModule)N)r"�
__module__�__qualname__rr rrrrrsrc@seZdZdd�Zddd�ZdS)�NonDataPropertycCs
||_dS)N)�fget)rr+rrrrBszNonDataProperty.__init__NcCs|dkr|S|j|�S)N)r+)r�objZobjtyperrr�__get__EszNonDataProperty.__get__)N)r"r(r)rr-rrrrr*Asr*c@s�eZdZdZd$d%d&gZdd�Zd
d�Zedd��Zdd�Z	dd�Z
ejgfdd��Z
eejdd���Zedd��Zdd�Zdd�Zedd ��Zed!d"��Zd#S)'�testz0run unit tests after in-place build (deprecated)�test-module=�m�$Run 'test_suite' in specified module�test-suite=�s�9Run single test, case or suite (e.g. 'module.test_suite')�test-runner=�r�Test 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_suiter:z&setuptools.command.test:ScanningLoaderr;)r8r9r�distributionr:�getattrr;)r�msgrrr�finalize_options`s




ztest.finalize_optionscCst|j��S)N)�list�
_test_args)rrrr�	test_argsssztest.test_argsccs6|jrtjdkrdV|jr$dV|jr2|jVdS)N��Zdiscoverz	--verbose)rDrE)r8�sys�version_info�verbose)rrrrrBwsztest._test_argsc	Cs|j��|�WdQRXdS)N)�project_on_sys_path)r�funcrrr�with_project_on_sys_paths
ztest.with_project_on_sys_pathccs�|jd�|jddd�|jd�|jd�}tjdd�}tjj�}zbt|j�}tjj	d|�t
j�tdd��t
d|j|jf�|j|g��dVWdQRXWd|tjdd�<tjj�tjj|�t
j�XdS)	NZegg_infoZ	build_extr)ZinplacercSs|j�S)N)Zactivate)�distrrr�<lambda>�sz*test.project_on_sys_path.<locals>.<lambda>z%s==%s)Zrun_commandZreinitialize_commandZget_finalized_commandrF�path�modules�copyrZegg_base�insertr	rrrZegg_nameZegg_version�paths_on_pythonpath�clear�update)rZ
include_distsZei_cmdZold_pathZold_modulesZproject_pathrrrrI�s$





ztest.project_on_sys_pathccs�t�}tjjd|�}tjjdd�}zBtjjt|��}td||g�}tjj|�}|r\|tjd<dVWd||kr~tjjdd�n
|tjd<XdS)N�
PYTHONPATHr)	�object�os�environ�get�pathsep�joinr�filter�pop)�pathsZnothingZorig_pythonpathZcurrent_pythonpath�prefixZto_join�new_pathrrrrR�s


ztest.paths_on_pythonpathcCsD|j|j�}|j|jpg�}|jdd�|jj�D��}tj|||�S)Ncss0|](\}}|jd�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)rLZir_dZtr_dZer_drrr�
install_dists�sztest.install_distscCs�|jdtj�|j|j�}dj|j�}|jr>|jd|�dS|jd|�tt	j
d�|�}|j|��"|j��|j
�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)�announcerZWARNrjr=r[�_argvZdry_run�map�operator�
attrgetterrRrI�	run_tests)rZinstalled_dists�cmdr^rrr�run�s
ztest.runcCsVtjdd|j|j|j�|j|j�dd�}|jj�sRd|j}|j|t	j
�t|��dS)NF)Z
testLoaderZ
testRunner�exitzTest failed: %s)�unittest�mainrn�_resolve_as_epr:r;�resultZ
wasSuccessfulrmrZERRORr)rr.r?rrrrr�s



ztest.run_testscCsdg|jS)Nrv)rC)rrrrrn�sz
test._argvcCs$|dkrdStjd|�}|j��S)Nzx=)r
�parseZresolve)�valZparsedrrrrx�sztest._resolve_as_epN)r/r0r1)r2r3r4)r5r6r7)r"r(r)�descriptionZuser_optionsr<r@r*rCrBrK�
contextlib�contextmanagerrI�staticmethodrRrjrtrr�propertyrnrxrrrrr.Ks(r.)rWrprFr}rhrvZdistutils.errorsrrZ	distutilsrrZ
pkg_resourcesrrrr	r
rrr
Z
setuptoolsrZ setuptools.extern.more_itertoolsrrr*r.rrrr�<module>s(
(

Youez - 2016 - github.com/yon3zu
LinuXploit