Module Expr Str Import alias ImportFrom alias Import alias alias Assign NameStore AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore BinOpMod NameLoad TupleLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Num orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr BinOpLShift Num Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Basic tests for os.popen()

  Particularly useful for platforms that fake popen.
 N/A unittest test support N/A os sys N/A python N/A sys executable N/A N/A python N/A N/A python N/A N/A " python " PopenTest N/A N/A unittest TestCase N/A _do_test_commandline N/A N/A self cmdline expected N/A N/A N/A cmd %s -c "import sys; print(sys.argv)" %s N/A cmd N/A cmd N/A python cmdline N/A N/A N/A os popen cmd p N/A N/A data N/A N/A p read N/A got N/A N/A eval data N/A 1 N/A N/A N/A self assertEqual got expected N/A test_popen N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A os popen N/A N/A N/A self _do_test_commandline foo bar N/A foo bar N/A N/A N/A self _do_test_commandline foo "spam and eggs" "silly walk" N/A foo spam and eggs silly walk N/A N/A N/A self _do_test_commandline foo "a \"quoted\" arg" bar N/A foo a "quoted" arg bar N/A N/A N/A support reap_children N/A test_return_code N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A os popen exit 0 close None N/A N/A N/A os name nt N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A os popen exit 42 close 42 N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A os popen exit 42 close N/A 42 8 N/A test_contextmanager N/A N/A self N/A N/A N/A N/A N/A os popen echo hello f N/A N/A N/A N/A self assertEqual N/A N/A f read hello
 N/A test_iterating N/A N/A self N/A N/A N/A N/A N/A os popen echo hello f N/A N/A N/A N/A self assertEqual N/A list f N/A hello
 N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A support run_unittest PopenTest N/A N/A N/A __name__ __main__ N/A N/A N/A test_main