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

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


��Qc@s�dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
dejejfd��YZ
d�Zed	kr�ejje��ndS(
sTests for distutils.sysconfig.i�N(t	sysconfig(tsupport(tTESTFNtSysconfigTestCasecBsteZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	e
jej
d�d	�d
��ZRS(cCs tt|�j�d|_dS(N(tsuperRtsetUptNonetmakefile(tself((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyR
scCsC|jdk	r"tj|j�n|j�tt|�j�dS(N(RRtostunlinktcleanup_testfnRRttearDown(R((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyRs
cCsTtjj}tjj|�r.tj|�n"tjj|�rPtj	|�ndS(N(
ttestttest_supportRR	tpathtisfiletremovetisdirtshutiltrmtree(RR((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyRs
cCsitj�}|jtj�tjdt��td�}tjtt�}|j|jd�|�dS(NtprefixRt
platstdlib(Rtget_python_libtassertNotEqualRt
__import__tTruetassertEqualtget_path(Rtlib_dirt
_sysconfigtres((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyttest_get_python_libscCs]tj�}|jtjj|�|�tjj|d�}|jtjj|�|�dS(NsPython.h(Rtget_python_inct
assertTrueR	RRtjoinR(Rtinc_dirtpython_h((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyttest_get_python_inc)scCs�tjj|_t|jd�}z|jd�|jd�Wd|j�Xtj|j�}|j	|idd6dd6�dS(Ntws)CONFIG_ARGS=  '--arg1=optarg1' 'ENV=LIB'
sVAR=$OTHER
OTHER=foos'--arg1=optarg1' 'ENV=LIB'tCONFIG_ARGStfootOTHER(
R
RRRtopentwritetcloseRtparse_makefileR(Rtfdtd((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyttest_parse_makefile_base2s
cCs�tjj|_t|jd�}z|jd�|jd�Wd|j�Xtj|j�}|j	|idd6dd6�dS(NR's,CONFIG_ARGS=  '--arg1=optarg1' 'ENV=\$$LIB'
sVAR=$OTHER
OTHER=foos'--arg1=optarg1' 'ENV=\$LIB'R(R)R*(
R
RRRR+R,R-RR.R(RR/R0((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyt"test_parse_makefile_literal_dollar>s
cCsTddl}|j|jd�tjd��|j|jd�tjd��dS(Ni�tCFLAGStLDFLAGS(RRtget_config_var(Rtglobal_sysconfig((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyttest_sysconfig_moduleKs"tCUSTOMIZED_OSX_COMPILERscompiler flags customizedcCsgddl}tjd�rdS|j|jd�tjd��|j|jd�tjd��dS(Ni�R8tLDSHAREDtCC(RR5R(RR6((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyttest_sysconfig_compiler_varsPs
"(t__name__t
__module__RRRR R&R1R2R7tunittesttskipIfRR5R;(((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyRs								
	cCs&tj�}|jtjt��|S(N(R>t	TestSuitetaddTestt	makeSuiteR(tsuite((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyt
test_suitehst__main__(t__doc__R	R
R>Rt	distutilsRtdistutils.testsRttest.test_supportRtEnvironGuardtTestCaseRRDR<Rtrun_unittest(((s4/sys/lib/python2.7/distutils/tests/test_sysconfig.pyt<module>s	\	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].