Current File : //usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyo
�
E�`Qc@s�ddlZddlZddlZddlmZddlmZd�Zdefd��YZ	defd��YZ
d	efd
��YZd�Zd�Z
dS(
i����N(t
TemporaryFile(texec_commandcOs6|j�z|||�Wd|jddd�XdS(N(t	__enter__t__exit__tNone(tcontexttftargstkwargs((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyt	fake_with	s
tredirect_stdoutcBs,eZdZdd�Zd�Zd�ZRS(s9Context manager to redirect stdout for exec_command test.cCs|ptj|_dS(N(tsyststdoutt_stdout(tselfR((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyt__init__scCstj|_|jt_dS(N(RRt
old_stdoutR
(R((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyRscCs*|jj�|jt_|jj�dS(N(R
tflushRRRtclose(Rtexc_typet	exc_valuet	traceback((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyRs
N(t__name__t
__module__t__doc__RRRR(((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR
s	tredirect_stderrcBs,eZdZdd�Zd�Zd�ZRS(s9Context manager to redirect stderr for exec_command test.cCs|ptj|_dS(N(Rtstderrt_stderr(RR((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR!scCstj|_|jt_dS(N(RRt
old_stderrR(R((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR$scCs*|jj�|jt_|jj�dS(N(RRRRRR(RRRR((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR(s
N(RRRRRRR(((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyRs	temulate_nonposixcBs,eZdZdd�Zd�Zd�ZRS(s.Context manager to emulate os.name != 'posix' s	non-posixcCs
||_dS(N(t	_new_name(Rtosname((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR0scCstj|_|jt_dS(N(tostnamet	_old_nameR(R((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR3scCs|jt_dS(N(R"R R!(RRRR((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR7s(RRRRRR(((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyR.s	cCs{tttj��ttt��tjd�tjdkrwtt�tttj��ttt��tjd�ndS(Nscd '.'tposix(	R	R
tStringIORRRR R!R(((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyttest_exec_command_stdout;s
	cCs�tttdd��tttj��tjd�tjdkr}tt�ttt��tttj��tjd�ndS(Ntmodesw+scd '.'R#(	R	R
RRR$RR R!R(((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyttest_exec_command_stderrQs
	(R RR$ttempfileRtnumpy.distutilsRR	tobjectR
RRR%R'(((sM/usr/lib64/python2.7/site-packages/numpy/distutils/tests/test_exec_command.pyt<module>s