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

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


��Qc@s�dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZdejejejfd	��YZd
�Zedkr�ee��ndS(s%Tests for distutils.command.build_py.i�N(tbuild_py(tDistribution(tDistutilsFileError(tsupport(trun_unittesttBuildPyTestCasecBs#eZd�Zd�Zd�ZRS(cCs�|j�}ttjj|d�d�}z|jd�Wd|j�Xttjj|d�d�}z|jd�Wd|j�X|j�}tidgd6i|d6d6�}tjj|d	�|_t	j
d
dd|�|jd
<dg|_idgd6|_
i|d6|_t|�}d|_|j�|j|j
|j
�|j�|jt|j��d�tjj|d�}tj|�}|jd|�|jd|�tjr�|jd|�n|jd|�dS(Ns__init__.pytws# Pretend this is a package.s
README.txtsInfo about this packagetpkgtpackagestpackage_dirssetup.pytforceit	build_libtbuildiis__init__.pyc(tmkdtemptopentostpathtjointwritetcloseRtscript_nameRtDummyCommandtcommand_objRtpackage_dataR	Rtcompiletensure_finalizedtassertEqualtruntlentget_outputstlistdirtassertIntsystdont_write_bytecodetassertNotIn(tselftsourcestftdestinationtdisttcmdtpkgdesttfiles((s3/sys/lib/python2.7/distutils/tests/test_build_py.pyttest_package_datas@		

	cCsWtj�}|j�}ttjj|d�d�j�tjj|d�}tj|�ttjj|d�d�j�tj|�t	j
}tj�t	_
z�tidgd6idd6d6id	gd6d
6�}tjj|d�|_
dg|_|j�y|j�Wntk
r7|jd
�nXWdtj|�|t	_
XdS(Ns__init__.pyRtdocttestfileRRtR	sdoc/*Rssetup.pyRs/failed package_data test when package_dir is ''(RtgetcwdR
RRRRtmkdirtchdirR tstdouttStringIORRtscript_argstparse_command_linetrun_commandsRtfail(R#tcwdR$ttestdirt
old_stdoutR'((s3/sys/lib/python2.7/distutils/tests/test_build_py.pyttest_empty_package_dirDs,"
"
	


cCs|j�\}}t|�}d|_d|_tj}tt_z|jg�Wd|t_X|jd|j	dd�dS(Nisbyte-compiling is disabledi(
tcreate_distRRtoptimizeR R!tTruetbyte_compileRtlogs(R#tpkg_dirR'R(told_dont_write_bytecode((s3/sys/lib/python2.7/distutils/tests/test_build_py.pyttest_dont_write_bytecodefs				
(t__name__t
__module__R+R;RC(((s3/sys/lib/python2.7/distutils/tests/test_build_py.pyRs	0	"cCs
tjt�S(N(tunittestt	makeSuiteR(((s3/sys/lib/python2.7/distutils/tests/test_build_py.pyt
test_suitevst__main__(t__doc__RR R3RFtdistutils.command.build_pyRtdistutils.coreRtdistutils.errorsRtdistutils.testsRttest.test_supportRtTempdirManagertLoggingSilencertTestCaseRRHRD(((s3/sys/lib/python2.7/distutils/tests/test_build_py.pyt<module>s	d	

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.