Viewing File: /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|dSdS(
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 buildstest-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 tdistributionRt	test_argstverbosetinsertR!tgetattr(R((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pytfinalize_options=s		cCs‹tjdkr¥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(tsystversion_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
|ƒqqWtt
tj	j|ƒƒq×ntjd|jƒ}|jdtƒ}|ƒ}|jdd|jg|jd|ƒdS(
NiÿÿÿÿiR)R
isx=R@t
testLoader(i(tunittestR2R3R'R#R4R$tsplitRR;Rt
startswithtlisttmapt__delitem__t
EntryPointtparseR!tloadRRt__file__(RRWRtdel_modulestnamet	loader_eptloader_classtcks((s;/usr/lib/python2.7/site-packages/setuptools/command/test.pyRSs$$
	(stest-module=Rs$Run 'test_suite' in specified module(stest-suite=Rs1Test suite to run (e.g. 'some_module.test_suite')(
RRt__doc__tdescriptiontuser_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
#
Back to Directory File Manager