HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/root/usr/lib/python2.7/dist-packages/setuptools/command/test.pyc
�
.
^c@sMddlZddlZddlZddlZddlZddlZddlmZmZddl	m
Z
ddlmZddlm
Z
ddlmZmZddlmZmZmZmZmZmZmZmZmZddlmZd	d
lmZeZ defd��YZ!d
dd��YZ"defd��YZ#dS(i����N(tDistutilsErrortDistutilsOptionError(tlog(t
TestLoader(tsix(tmaptfilter(	tresource_listdirtresource_existstnormalize_pathtworking_sett_namespace_packagestevaluate_markertadd_activation_listenertrequiret
EntryPoint(tCommandi(t_unique_everseentScanningLoadercBseZd�Zdd�ZRS(cCstj|�t�|_dS(N(Rt__init__tsett_visited(tself((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyRs
cCs7||jkrdS|jj|�g}|jtj||��t|d�rg|j|j��nt|d�rx�t|j	d�D]|}|j
d�r�|dkr�|j	d|d }n-t|j	|d�r�|j	d|}nq�|j|j|��q�Wnt
|�d	kr+|j|�S|d
SdS(sReturn 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.
        tadditional_testst__path__ts.pys__init__.pyt.i����s/__init__.pyiiN(RtNonetaddtappendRtloadTestsFromModulethasattrRRt__name__tendswithRtloadTestsFromNametlent
suiteClass(Rtmoduletpatterntteststfilet	submodule((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyRs$
N(R t
__module__RRR(((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyRs	tNonDataPropertycBseZd�Zdd�ZRS(cCs
||_dS(N(tfget(RR,((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyRAscCs|dkr|S|j|�S(N(RR,(Rtobjtobjtype((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyt__get__DsN(R R*RRR/(((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyR+@s	ttestcBs�eZdZdZdddgZd�Zd�Zed
��Zd�Z	d�Z
ejgd��Z
eejd���Zed��Zd�Zd�Zed��Zed��ZRS(s.Command to run unit tests after in-place builds0run unit tests after in-place build (deprecated)stest-module=tms$Run 'test_suite' in specified modulestest-suite=tss9Run single test, case or suite (e.g. 'module.test_suite')stest-runner=trsTest runner to usecCs(d|_d|_d|_d|_dS(N(Rt
test_suitettest_modulettest_loaderttest_runner(R((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pytinitialize_optionsVs			cCs�|jr'|jr'd}t|��n|jdkrj|jdkrW|jj|_qj|jd|_n|jdkr�t|jdd�|_n|jdkr�d|_n|jdkr�t|jdd�|_ndS(Ns1You may specify a module or a suite, but not boths.test_suiteR6s&setuptools.command.test:ScanningLoaderR7(R4R5RRtdistributionR6tgetattrR7(Rtmsg((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pytfinalize_options\scCst|j��S(N(tlistt
_test_args(R((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyt	test_argsosccsJ|jr!tjdkr!dVn|jr2dVn|jrF|jVndS(Niitdiscovers	--verbose(ii(R4tsystversion_infotverbose(R((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyR>ss		cCs|j��|�WdQXdS(sI
        Backward compatibility for project_on_sys_path context.
        N(tproject_on_sys_path(Rtfunc((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pytwith_project_on_sys_path{s
c	cs�tjot|jdt�}|r�|jddd�|jd�|jd�}t|j	�}|jdd|�|jd�|jddd�|jd�n-|jd�|jddd�|jd�|jd�}t
j}t
jj
�}zut|j�}t
jjd|�tj�td	��td
|j|jf�|j|g��
dVWdQXWd|t
j(t
jj�t
jj|�tj�XdS(Ntuse_2to3tbuild_pytinplaceitegg_infotegg_baset	build_exticSs
|j�S(N(tactivate(tdist((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyt<lambda>�Rs%s==%s(RtPY3R:R9tFalsetreinitialize_commandtrun_commandtget_finalized_commandR	t	build_libRAtpathtmodulestcopyRKtinsertR
RR
Rtegg_nametegg_versiontpaths_on_pythonpathtcleartupdate(	Rt
include_distst	with_2to3tbpy_cmdt
build_pathtei_cmdtold_pathtold_modulestproject_path((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyRD�s8








ccs�t�}tjjd|�}tjjdd�}z^tjjt|��}td||g�}tjj|�}|r�|tjd<ndVWd||kr�tjj	dd�n
|tjd<XdS(s�
        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.
        t
PYTHONPATHRN(
tobjecttostenvirontgettpathseptjoinRRRtpop(tpathstnothingtorig_pythonpathtcurrent_pythonpathtprefixtto_jointnew_path((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyR\�s
		cCs_|j|j�}|j|jp$g�}|jd�|jj�D��}tj|||�S(s�
        Install the requirements indicated by self.distribution and
        return an iterable of the dists that were built.
        css:|]0\}}|jd�rt|d�r|VqdS(t:iN(t
startswithR(t.0tktv((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pys	<genexpr>�s	(tfetch_build_eggstinstall_requirest
tests_requiretextras_requiretitemst	itertoolstchain(RNtir_dttr_dter_d((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyt
install_dists�s
c	Cs�|jdtj�|j|j�}dj|j�}|jrU|jd|�dS|jd|�tt	j
d�|�}|j|��"|j��|j
�WdQXWdQXdS(Ns�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.t sskipping "%s" (dry run)srunning "%s"tlocation(tannounceRtWARNR�R9Rmt_argvtdry_runRtoperatort
attrgetterR\RDt	run_tests(Rtinstalled_diststcmdRo((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pytrun�s
	
c
CsEtjr�t|jdt�r�|jjd�d}|tkr�g}|tj	kre|j
|�n|d7}x0tj	D]%}|j|�ry|j
|�qyqyWtt
tj	j|��q�ntjdd|jd|j|j�d|j|j�dt�}|jj�sAd|j}|j|tj�t|��ndS(NRGRit
testLoadert
testRunnertexitsTest failed: %s(RRPR:R9RQR4tsplitRRARWRRwR=Rt__delitem__tunittesttmainRR�t_resolve_as_epR6R7tresultt
wasSuccessfulR�RtERRORR(RR%tdel_modulestnameR0R;((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyR��s(
	
cCsdg|jS(NR�(R?(R((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyR�
scCs0|dkrdStjd|�}|j��S(su
        Load the indicated attribute value, called, as a as if it were
        specified as an entry point.
        Nsx=(RRtparsetresolve(tvaltparsed((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyR�s(stest-module=R1s$Run 'test_suite' in specified module(stest-suite=R2s9Run single test, case or suite (e.g. 'module.test_suite')(stest-runner=R3sTest runner to use(R R*t__doc__tdescriptiontuser_optionsR8R<R+R?R>RFt
contextlibtcontextmanagerRDtstaticmethodR\R�R�R�tpropertyR�R�(((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyR0Js(					-		(($RiR�RAR�R�R�tdistutils.errorsRRt	distutilsRRtsetuptools.externRtsetuptools.extern.six.movesRRt
pkg_resourcesRRR	R
RRR
RRt
setuptoolsRRHRttypet
__metaclass__RR+R0(((s;/usr/lib/python2.7/dist-packages/setuptools/command/test.pyt<module>s"@)