Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/distutils/tests/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/distutils/tests/__pycache__/test_spawn.cpython-35.opt-2.pyc



���]A�@s�ddlZddlZddlZddlmZmZddlmZddlmZm	Z	ddl
mZddlm
Z
Gdd�de
je
jej�Zd	d
�Zedkr�ee��dS)�N)�captured_stdout�run_unittest)�_nt_quote_args)�spawn�find_executable)�DistutilsExecError)�supportc@sCeZdZdd�Zejejd	kd�dd��ZdS)
�
SpawnTestCasecCsaxZddgddgfddgddgffD](\}}t|�}|j||�q1WdS)Nz
with spaceZnospacez"with space"Znochange)rZassertEqual)�self�argsZwanted�res�r
�//opt/alt/python35/lib64/python3.5/test_spawn.py�test_nt_quote_argss	z SpawnTestCase.test_nt_quote_args�nt�posixzRuns only under posix or ntcCs|j�}tjdkrCtjj|d�}|j|d�n%tjj|d�}|j|d�tj|d�|jtt	|g�tjdkr�tjj|d�}|j|d�n%tjj|d�}|j|d�tj|d�t	|g�dS)	Nrzfoo.shz#!/bin/sh
exit 1zfoo.batzexit 1i�z#!/bin/sh
exit 0zexit 0)
�mkdtemp�os�name�path�joinZ
write_file�chmodZassertRaisesrr)r
ZtmpdirZexer
r
r�
test_spawnszSpawnTestCase.test_spawnN)rr)	�__name__�
__module__�__qualname__r�unittestZ
skipUnlessrrrr
r
r
rr	s
r	cCs
tjt�S)N)rZ	makeSuiter	r
r
r
r�
test_suite6sr�__main__)rr�timeZtest.supportrrZdistutils.spawnrrrZdistutils.errorsrZdistutils.testsrZTempdirManagerZLoggingSilencerZTestCaser	rrr
r
r
r�<module>s(