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

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


��Qc@s�dZddlZddlZddlZddlmZmZmZddlm	Z	ddl
mZddlm
Z
dejejfd��YZd	�Zed
kr�e
e��ndS(sTests for distutils.dep_util.i�N(tnewertnewer_pairwisetnewer_group(tDistutilsFileError(tsupport(trun_unittesttDepUtilTestCasecBs#eZd�Zd�Zd�ZRS(cCs�|j�}tjj|d�}tjjt�}|jtt||�|j	|�|j
t|d��|j
t||��|jt||��dS(NtnewtI_dont_exist(tmkdtemptostpathtjointabspatht__file__tassertRaisesRRt
write_filet
assertTruetassertFalse(tselfttmpdirtnew_filetold_file((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyt
test_newer
s
cCs�|j�}tjj|d�}tjj|d�}tj|�tj|�tjj|d�}tjj|d�}tjjt�}tjj|d�}|j|�|j|�|j|�|jt	||g||g�|g|gf�dS(Ntsourcesttargetstonettwotfour(
R	R
RRtmkdirR
RRtassertEqualR(RRRRRRtthreeR((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyttest_newer_pairwise s




cCs^|j�}tjj|d�}tj|�tjj|d�}tjj|d�}tjj|d�}tjjt�}|j|�|j|�|j|�|jt	|||g|��|j
t	|||g|��tj|�|jt
t	|||g|�|j
t	|||g|dd��|jt	|||g|dd��dS(NRRRRtmissingtignoreR(R	R
RRRR
RRRRRtremoveRtOSError(RRRRRRR((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyttest_newer_group1s$





(t__name__t
__module__RR R%(((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyRs		cCs
tjt�S(N(tunittestt	makeSuiteR(((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyt
test_suiteMst__main__(t__doc__R(R
ttimetdistutils.dep_utilRRRtdistutils.errorsRtdistutils.testsRttest.test_supportRtTempdirManagertTestCaseRR*R&(((s3/sys/lib/python2.7/distutils/tests/test_dep_util.pyt<module>sB	

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].