Current File : //proc/3/root/proc/self/root/usr/lib/python2.7/site-packages/setuptools/command/test.pyc
�
b-�Qc@s�ddlmZddlmZddlZddlTddlmZddlmZm Z defd��YZ
d efd
��YZdS(i����(tCommand(tDistutilsOptionErrorN(t*(t_namespace_packages(t
TestLoadertmaintScanningLoadercBseZd�ZRS(cCs&g}|jdkr1|jtj||��nt|d�rV|j|j��nt|d�r�x�t|jd�D]|}|jd�r�|dkr�|jd|d }n-t|j|d �rx|jd|}nqx|j|j |��qxWnt
|�d
kr|j|�S|dSdS(
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.
ssetuptools.tests.doctesttadditional_testst__path__ts.pys__init__.pyt.i����s/__init__.pyiiN(t__name__tappendRtloadTestsFromModulethasattrRtresource_listdirtendswithtresource_existstloadTestsFromNametlent
suiteClass(tselftmoduletteststfilet submodule((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pyR
s"
(Rt
__module__R
(((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pyRsttestcBsMeZdZdZd
dgZd�Zd �Zd
�Zd�Zd�Z RS(s.Command to run unit tests after in-place builds#run unit tests after in-place buildstest-module=tms$Run 'test_suite' in specified modulestest-suite=tss1Test suite to run (e.g. 'some_module.test_suite')cCsd|_d|_d|_dS(N(tNonet
test_suitettest_modulettest_loader(R((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pytinitialize_options7s cCs�|jdkrC|jdkr0|jj|_q[|jd|_n|jr[td��n|jg|_|jr�|jjdd�n|jdkr�t |jdd�|_n|jdkr�d|_ndS(Ns.test_suites1You may specify a module or a suite, but not bothis --verboseR!s&setuptools.command.test:ScanningLoader(
RRR tdistributionRt test_argstverbosetinsertR!tgetattr(R((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pytfinalize_options=s cCs�tjdkr�t|jdt�r�|jddd�|jd�|jd�}t|j �}|jdd|�|jd�|jddd�|jd�n-|jd�|jddd �|jd�|jd�}tj
}tjj�}zXtj
j
dt|j��tj�td
��td|j|jf�|�Wd|tj
(tjj�tjj|�tj�XdS(
Nituse_2to3tbuild_pytinplaceitegg_infotegg_baset build_exticSs
|j�S(N(tactivate(tdist((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pyt<lambda>tss%s==%s(i(tsystversion_infoR'R#tFalsetreinitialize_commandtrun_commandtget_finalized_commandtnormalize_patht build_libtpathtmodulestcopyR&R-tworking_sett__init__tadd_activation_listenertrequiretegg_nametegg_versiontcleartupdate(Rtfunctbpy_cmdt
build_pathtei_cmdtold_pathtold_modules((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pytwith_project_on_sys_pathTs2$
cCs�|jjr%|jj|jj�n|jjrJ|jj|jj�n|jr�dj|j�}|jr�|jd|�q�|jd|�|j |j
�ndS(Nt s skipping "unittest %s" (dry run)srunning "unittest %s"(R#tinstall_requirestfetch_build_eggst
tests_requireRtjoinR$tdry_runtannounceRKt run_tests(Rtcmd((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pytrun~s cCs2ddl}tjd kr�t|jdt�r�|jdjd�d}|tkr�g}|tj kr{|j
|�n|d7}x0tj D]%}|j|�r�|j
|�q�q�Wtt
tj j|��q�ntjd|j�}|jdt�}|�}|jdd|jg|jd|�dS(
Ni����iR)R
isx=R@t
testLoader(i(tunittestR2R3R'R#R4R$tsplitRR;Rt
startswithtlisttmapt__delitem__t
EntryPointtparseR!tloadRRt__file__(RRWRtdel_modulestnamet loader_eptloader_classtcks((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pyRS�s$$
(stest-module=Rs$Run 'test_suite' in specified module(stest-suite=Rs1Test suite to run (e.g. 'some_module.test_suite')(
RRt__doc__tdescriptiontuser_optionsR"R(RKRURS(((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pyR+s * (t
setuptoolsRtdistutils.errorsRR2t
pkg_resourcesRRWRRRR(((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pyt<module>s
#