ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyc

�
0��`c@s�ddlmZddlmZddlZddlmZddlmZddl	m
Z
mZmZm
Z
mZmZmZmZddlmZddlmZd	efd
��YZdefd��YZd
efd��YZdS(i����(tDistutilsOptionError(t
TestLoaderN(tsix(tmap(tresource_listdirtresource_existstnormalize_pathtworking_sett_namespace_packagestadd_activation_listenertrequiret
EntryPoint(tCommand(t
unittest_maintScanningLoadercBseZdd�ZRS(cCsg}|jtj||��t|d�rD|j|j��nt|d�r�x�t|jd�D]|}|jd�r�|dkr�|jd|d }n-t|j|d�rf|jd|}nqf|j|j	|��qfWnt
|�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(tappendRtloadTestsFromModulethasattrRRt__name__tendswithRtloadTestsFromNametlent
suiteClass(tselftmoduletpatterntteststfilet	submodule((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyRs
N(Rt
__module__tNoneR(((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyRstNonDataPropertycBseZd�Zdd�ZRS(cCs
||_dS(N(tfget(RR$((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt__init__0scCs|dkr|S|j|�S(N(R"R$(Rtobjtobjtype((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt__get__3sN(RR!R%R"R((((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR#/s	ttestcBs�eZdZdZdddgZd�Zd�Zed
��Zd�Z	d�Z
d�Zd�Ze
d��Zed��ZRS(s.Command to run unit tests after in-place builds#run unit tests after in-place buildstest-module=tms$Run 'test_suite' in specified modulestest-suite=tss1Test suite to run (e.g. 'some_module.test_suite')stest-runner=trsTest runner to usecCs(d|_d|_d|_d|_dS(N(R"t
test_suitettest_modulettest_loaderttest_runner(R((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pytinitialize_optionsEs			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_suiteR/s&setuptools.command.test:ScanningLoaderR0(R-R.RR"tdistributionR/tgetattrR0(Rtmsg((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pytfinalize_optionsKscCst|j��S(N(tlistt
_test_args(R((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt	test_args^sccs)|jrdVn|jr%|jVndS(Ns	--verbose(tverboseR-(R((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR7bs		cCs�tjot|jdt�}|r�|jddd�|jd�|jd�}t|j	�}|jdd|�|jd�|jddd�|jd�n-|jd�|jddd�|jd�|jd�}t
j}t
jj
�}zXt
jjdt|j��tj�td	��td
|j|jf�|�Wd|t
j(t
jj�t
jj|�tj�XdS(Ntuse_2to3tbuild_pytinplaceitegg_infotegg_baset	build_exticSs
|j�S(N(tactivate(tdist((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt<lambda>�Rs%s==%s(RtPY3R3R2tFalsetreinitialize_commandtrun_commandtget_finalized_commandRt	build_libtsystpathtmodulestcopytinsertR>RR%R	R
tegg_nametegg_versiontcleartupdate(Rtfunct	with_2to3tbpy_cmdt
build_pathtei_cmdtold_pathtold_modules((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pytwith_project_on_sys_pathhs4








cCs�|jjr%|jj|jj�n|jjrJ|jj|jj�ndj|j�}|jry|jd|�n!|jd|�|j|j	�dS(Nt sskipping "%s" (dry run)srunning "%s"(
R2tinstall_requirestfetch_build_eggst
tests_requiretjoint_argvtdry_runtannounceRYt	run_tests(Rtcmd((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pytrun�s		c	Cs�tjr�t|jdt�r�|jjd�d}|tkr�g}|tj	kre|j
|�n|d7}x0tj	D]%}|j|�ry|j
|�qyqyWtt
tj	j|��q�ntdd|jd|j|j�d|j|j��dS(NR:Rit
testLoadert
testRunner(RRCR3R2RDR-tsplitRRIRKRt
startswithR6Rt__delitem__R
R"R_t_resolve_as_epR/R0(RRtdel_modulestname((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyRb�s
cCsdg|jS(Ntunittest(R8(R((sH/opt/alt/python27/lib/python2.7/site-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=(R"Rtparsetresolve(tvaltparsed((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyRj�s(stest-module=R*s$Run 'test_suite' in specified module(stest-suite=R+s1Test suite to run (e.g. 'some_module.test_suite')(stest-runner=R,sTest runner to use(RR!t__doc__tdescriptiontuser_optionsR1R5R#R8R7RYRdRbtpropertyR_tstaticmethodRj(((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyR)9s					+		(tdistutils.errorsRRmRRItsetuptools.externRtsetuptools.extern.six.movesRt
pkg_resourcesRRRRRR	R
Rt
setuptoolsRtsetuptools.py31compatR
RtobjectR#R)(((sH/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/test.pyt<module>s: 

Zerion Mini Shell 1.0