Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/tests/test_config_cmd.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�dZddlZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZde
j
e
jejfd��YZd	�Zed
kr�ee��ndS(s#Tests for distutils.command.config.i�N(trun_unittest(t	dump_filetconfig(tsupport(tlogtConfigTestCasecBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cGs+x$|j�D]}|jj|�q
WdS(N(t
splitlinest_logstappend(tselftmsgtargstline((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyt_infoscCs8tt|�j�g|_tj|_|jt_dS(N(tsuperRtsetUpRRtinfotold_logR
(R	((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyRs	cCs#|jt_tt|�j�dS(N(RRRRRttearDown(R	((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyRscCsxtjjt�dd}t|�}zt|j��}Wd|j�Xt|d�|j	t|j
�|d�dS(Nis.pysI am the headeri(tostpathtsplitextt__file__topentlent	readlinestcloseRtassertEqualR(R	t	this_filetftnumlines((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyttest_dump_files
cCs�tjdkrdS|j�\}}t|�}|jdddd�}|j|d�|jdddd�}|j|d�dS(	Ntwin32tpatterntxxxtbodys	/* xxx */it_configtesti(tsystplatformtcreate_distRt
search_cppR(R	tpkg_dirtdisttcmdtmatch((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyttest_search_cpp(scCs�|j�\}}t|�}dtj|_d|_dtj|_|j�|j|jddg�|j|jdg�|j|jddg�dS(Nsone%stwotonesthree%sfourttwotthreetfour(	R'RRtpathseptinclude_dirst	librariestlibrary_dirstensure_finalizedR(R	R)R*R+((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyttest_finalize_options5s	
cCs�|j�}tjj|d�}tjj|d�}|j|d�|j|d�x-||fD]}|jtjj|��qcW|j�\}}t|�}|j	||�x.||fD] }|jtjj|��q�WdS(NR.R/R"(
tmkdtempRRtjoint
write_filet
assertTruetexistsR'Rt_clean(R	ttmp_dirtf1tf2RR)R*R+((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyt
test_cleanCs(	t__name__t
__module__R
RRRR-R7RA(((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyRs					
	cCs
tjt�S(N(tunittestt	makeSuiteR(((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyt
test_suiteVst__main__(t__doc__RDRR%ttest.test_supportRtdistutils.command.configRRtdistutils.testsRt	distutilsRtLoggingSilencertTempdirManagertTestCaseRRFRB(((s5/sys/lib/python2.7/distutils/tests/test_config_cmd.pyt<module>s	I	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.