Your IP : 18.116.19.29


Current Path : /opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/test.cpython-33.pyc

�
�Re,c@s�ddlmZddlmZddlZddlTddlmZddlmZm	Z	Gdd�de�Z
Gd	d
�d
e�ZdS(i(uCommand(uDistutilsOptionErrorN(u*(u_namespace_packages(u
TestLoaderumaincBs |EeZdZdd�ZdS(uScanningLoadercCs,g}|jdkr1|jtj||��nt|d�rV|j|j��nt|d�rx�t|jd�D]�}|jd�r�|dkr�|jd|dd
�}n-t|j|d
�rx|jd|}nqx|j|j	|��qxWnt
|�dkr |j|�S|dSdS(uReturn 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.
        usetuptools.tests.doctestuadditional_testsu__path__uu.pyu__init__.pyu.Niu/__init__.pyiii����(u__name__uappendu
TestLoaderuloadTestsFromModuleuhasattruadditional_testsuresource_listdiruendswithuresource_existsuloadTestsFromNameulenu
suiteClass(uselfumoduleutestsufileu	submodule((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyuloadTestsFromModule
s"
u"ScanningLoader.loadTestsFromModuleN(u__name__u
__module__u__qualname__uloadTestsFromModule(u
__locals__((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyuScanningLoadersuScanningLoadercBsh|EeZdZdZdZddgZd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dS(utestu.Command to run unit tests after in-place buildu#run unit tests after in-place buildutest-module=umu$Run 'test_suite' in specified moduleutest-suite=usu1Test suite to run (e.g. 'some_module.test_suite')cCsd|_d|_d|_dS(N(uNoneu
test_suiteutest_moduleutest_loader(uself((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyuinitialize_options7s		utest.initialize_optionscCs�|jdkrC|jdkr0|jj|_q[|jd|_n|jr[td��n|jg|_|jr�|jjdd�n|jdkr�t	|jdd�|_n|jdkr�d|_ndS(Nu.test_suiteu1You may specify a module or a suite, but not bothiu	--verboseutest_loaderu&setuptools.command.test:ScanningLoader(
u
test_suiteuNoneutest_moduleudistributionuDistutilsOptionErroru	test_argsuverboseuinsertutest_loaderugetattr(uself((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyufinalize_options=s		utest.finalize_optionscCs�tjd
kr�t|jdd�r�|jddd�|jd�|jd�}t|j	�}|jdd|�|jd�|jddd�|jd�n-|jd�|jddd	�|jd�|jd�}tj
dd�}tjj�}z[tj
j
dt|j��tj�td
d��td|j|jf�|�Wd|tj
dd�<tjj�tjj|�tj�XdS(Niuuse_2to3ubuild_pyuinplaceiuegg_infouegg_baseu	build_exticSs
|j�S(N(uactivate(udist((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyu<lambda>tsu/test.with_project_on_sys_path.<locals>.<lambda>u%s==%s(iF(usysuversion_infougetattrudistributionuFalseureinitialize_commandurun_commanduget_finalized_commandunormalize_pathu	build_libupathumodulesucopyuinsertuegg_baseuworking_setu__init__uadd_activation_listenerurequireuegg_nameuegg_versionuclearuupdate(uselfufuncubpy_cmdu
build_pathuei_cmduold_pathuold_modules((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyuwith_project_on_sys_pathTs2$





utest.with_project_on_sys_pathcCs�|jjr%|jj|jj�n|jjrJ|jj|jj�n|jr�dj|j�}|jr�|jd|�q�|jd|�|j	|j
�ndS(Nu u skipping "unittest %s" (dry run)urunning "unittest %s"(udistributionuinstall_requiresufetch_build_eggsu
tests_requireu
test_suiteujoinu	test_argsudry_runuannounceuwith_project_on_sys_pathu	run_tests(uselfucmd((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyurun~s		utest.runcCs2ddl}tjd	kr�t|jdd
�r�|jdjd�d}|tkr�g}|tj	kr{|j
|�n|d7}x0tj	D]%}|j|�r�|j
|�q�q�Wtt
tj	j|��q�ntjd|j�}|jdd
�}|�}|jdd|jg|jd|�dS(Niiuuse_2to3iu.ux=urequireu
testLoader(iFi����(uunittestusysuversion_infougetattrudistributionuFalseu	test_argsusplitu_namespace_packagesumodulesuappendu
startswithulistumapu__delitem__u
EntryPointuparseutest_loaderuloadumainuNoneu__file__(uselfuunittestumoduleudel_modulesunameu	loader_epuloader_classucks((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyu	run_tests�s$$
	utest.run_testsN(utest-module=umu$Run 'test_suite' in specified module(utest-suite=usu1Test suite to run (e.g. 'some_module.test_suite')(u__name__u
__module__u__qualname__u__doc__udescriptionuuser_optionsuinitialize_optionsufinalize_optionsuwith_project_on_sys_pathurunu	run_tests(u
__locals__((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyutest+s	*utest(u
setuptoolsuCommandudistutils.errorsuDistutilsOptionErrorusysu
pkg_resourcesu_namespace_packagesuunittestu
TestLoaderumainuScanningLoaderutest(((u0/tmp/pip-k8wh6o-build/setuptools/command/test.pyu<module>s
#

?>