%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyo

�
5}�ac@s�dZddlZddlZddlmZddlmZddlZddlm	Z	ddl
mZde	je	j
ejfd��YZd	�Zed
kr�ee��ndS(s*Tests for distutils.command.build_scripts.i����N(t
build_scripts(tDistribution(tsupport(trun_unittesttBuildScriptsTestCasecBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsc|jdg�}|j|j�|j|j�|j�|j|j�|j|jd�dS(Ns/foo/bar(tget_build_scripts_cmdtassertFalsetforcetassertIsNonet	build_dirtfinalize_optionst
assertTruetassertEqual(tselftcmd((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyttest_default_settingss
cCs�|j�}|j�}|j|�}|j|g|D]}tjj||�^q7�}|j�|j�tj|�}x|D]}|j	||�q�WdS(N(
tmkdtemptwrite_sample_scriptsRtostpathtjoinR
truntlistdirtassertIn(R
tsourcettargettexpectedtfnRtbuilttname((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyt
test_builds	(


cCsPddl}t�}||_tjd|ddd|j�|jd<t|�S(Ni����RRit
executabletbuild(tsysRtscriptsRtDummyCommandRtcommand_objR(R
RR"R!tdist((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyR+s			cCsjg}|jd�|j|dd�|jd�|j|dd�|jd�|j|dd�|S(Ns
script1.pys@#! /usr/bin/env python2.3
# bogus script w/ Python sh-bang
pass
s
script2.pys8#!/usr/bin/python
# bogus script w/ Python sh-bang
pass
sshell.shs1#!/bin/sh
# bogus shell script w/ sh-bang
exit 0
(tappendtwrite_script(R
tdirR((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyR6s


cCsAttjj||�d�}z|j|�Wd|j�XdS(Ntw(topenRRRtwritetclose(R
R(Rttexttf((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyR'Isc	Cs�|j�}|j�}|j|�}|j|g|D]}tjj||�^q7�}|j�tj�j	d�}dtj
d<z|j�Wd|dk	r�|tj
d<nXtj
|�}x|D]}|j||�q�WdS(NtVERSIONi(RRRRRRR
t	sysconfigtget_config_varstgett_CONFIG_VARSRtNoneRR(	R
RRRRRtoldRR((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyttest_version_intPs 	(


(t__name__t
__module__RRRRR'R6(((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyRs	
				cCs
tjt�S(N(tunittestt	makeSuiteR(((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyt
test_suitelst__main__(t__doc__RR9tdistutils.command.build_scriptsRtdistutils.coreRR0tdistutils.testsRttest.test_supportRtTempdirManagertLoggingSilencertTestCaseRR;R7(((sK/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_scripts.pyt<module>s	\	

Zerion Mini Shell 1.0