��Qc@s�dZddlZddlZddlZddlmZmZddlmZddlm Z m
Z
ddlmZddl
mZdejejejfd ��YZd
�Zedkr�ee��ndS(sTests for distutils.spawn.i�N(tcaptured_stdouttrun_unittest(t_nt_quote_args(tspawntfind_executable(tDistutilsExecError(tsupportt
SpawnTestCasecBs5eZd�Zejejdkd�d��ZRS(cCsaxZddgddgfddgddgffD](\}}t|�}|j||�q1WdS(Ns
with spacetnospaces"with space"tnochange(RtassertEqual(tselftargstwantedtres((s0/sys/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�jj|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_filetchmodtassertRaisesRR(Rttmpdirtexe((s0/sys/lib/python2.7/distutils/tests/test_spawn.pyt
test_spawns"(sntsposix(t__name__t
__module__Rtunittestt
skipUnlessRRR(((s0/sys/lib/python2.7/distutils/tests/test_spawn.pyRs
cCs
tjt�S(N(Rt makeSuiteR(((s0/sys/lib/python2.7/distutils/tests/test_spawn.pyt
test_suite8st__main__(t__doc__RRttimettest.test_supportRRtdistutils.spawnRRRtdistutils.errorsRtdistutils.testsRtTempdirManagertLoggingSilencertTestCaseRR"R(((s0/sys/lib/python2.7/distutils/tests/test_spawn.pyt<module>s *
|