tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
Q\¬Qc@sdZddlZddlmZddlZddlZejZdejfd„ƒYZ    d„Z
e dkr{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(tpythontostpopentreadtevalt assertEqual(tselftcmdlinetexpectedtcmdtdatatgot((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_popen.pyttest_return_code)s"(t__name__t
__module__RRR(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_popen.pyRs        cCstjtƒdS(N(Rt run_unittestR(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_popen.pyt    test_main0st__main__( t__doc__tunittestttestRRtsyst
executableRtTestCaseRRR(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_popen.pyt<module>s