mς %U²Ic@s€dZdkZdkZdklZdklZeiZdejodedZnd„Zd„Z d„Z e ƒdS( sQBasic tests for os.popen() Particularly useful for platforms that fake popen. N(s TestSkipped(spopent t"cCs^dt|f}t|ƒiƒ}t|ƒd}||jodGHd|||fGHndS(Ns$%s -c "import sys;print sys.argv" %sis$Error in popen commandline handling.s+ executed '%s', expected '%r', but got '%r'( tpythontcmdlinetcmdtpopentreadtdatatevaltgottexpected(RR RR R((t,/data/zmath/lib/python2.4/test/test_popen.pyt_do_test_commandlines  cCsHtdddgƒtddddgƒtddddgƒd GHdS( Nsfoo bartfootbars foo "spam and eggs" "silly walk"s spam and eggss silly walksfoo "a \"quoted\" arg" barsa "quoted" args2popen seemed to process the command-line correctly(R (((R t_test_commandlinescCsdGHtƒdS(Ns Test popen:(R(((R tmain#s( t__doc__tostsysttest.test_supportt TestSkippedRt executableRR RR(RRRR RRRR((R t?s