HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //usr/lib64/python2.7/test/test_popen.pyo
�
zfc@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((s'/usr/lib64/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((s'/usr/lib64/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((s'/usr/lib64/python2.7/test/test_popen.pyttest_return_code(s"(t__name__t
__module__RRR(((s'/usr/lib64/python2.7/test/test_popen.pyRs		cCstjt�dS(N(Rtrun_unittestR(((s'/usr/lib64/python2.7/test/test_popen.pyt	test_main/st__main__(t__doc__tunittestttestRRtsyst
executableRtTestCaseRRR(((s'/usr/lib64/python2.7/test/test_popen.pyt<module>s