Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.145.62.14
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_popen.pyo
�
?��cc@sdZddlZddlmZddlZddlZejZdejfd��YZ	d�Z
edkr{e
�ndS(sQBasic tests for os.popen()

  Particularly useful for platforms that fake popen.
i����N(ttest_supportt	PopenTestcBs#eZd�Zd�Zd�ZRS(cCsMdt|f}tj|�j�d}t|�d}|j||�dS(Ns$%s -c "import sys;print sys.argv" %ss
i(tpythontostpopentreadtevaltassertEqual(tselftcmdlinetexpectedtcmdtdatatgot((s6/usr/local/python-2.7/lib/python2.7/test/test_popen.pyt_do_test_commandlinescCsi|jttj�|jdddg�|jddddg�|jddddg�tj�dS(	Nsfoo bartfootbars foo "spam and eggs" "silly walk"s
spam and eggss
silly walksfoo "a \"quoted\" arg" barsa "quoted" arg(tassertRaisest	TypeErrorRRRRt
reap_children(R((s6/usr/local/python-2.7/lib/python2.7/test/test_popen.pyt
test_popens
cCss|jtjd�j�d�tjdkrP|jtjd�j�d�n|jtjd�j�d�dS(Nsexit 0tntsexit 42i*ii*(RRRtclosetNonetname(R((s6/usr/local/python-2.7/lib/python2.7/test/test_popen.pyttest_return_code(s"(t__name__t
__module__RRR(((s6/usr/local/python-2.7/lib/python2.7/test/test_popen.pyRs		cCstjt�dS(N(Rtrun_unittestR(((s6/usr/local/python-2.7/lib/python2.7/test/test_popen.pyt	test_main/st__main__(t__doc__tunittestttestRRtsyst
executableRtTestCaseRRR(((s6/usr/local/python-2.7/lib/python2.7/test/test_popen.pyt<module>s		
© 2025 GrazzMean