Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Expr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad For NameStore TupleLoad Str Str Str body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str BinOpMult Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Slice NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases body Pass decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str BinOpMult Str Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str TupleLoad TupleLoad TupleLoad TupleLoad TupleLoad TupleLoad NameLoad TupleLoad TupleLoad TupleLoad Num TupleLoad TupleLoad TupleLoad Str TupleLoad ListLoad TupleLoad TupleLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad TryExcept body Expr BinOpDiv Num Num handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num orelse Print AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq SubscriptLoad NameLoad Index Num Num body Assign NameStore Call NameLoad NameLoad If BoolOpOr CompareNotEq Call AttributeLoad NameLoad attr NameLoad Num CompareEq Call AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Num Num Num Num body TryExcept body Assign NameStore Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareNotEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list TryFinally body Expr Call NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Str Assert UnaryOpNot BinOpMod NameLoad Call NameLoad NameLoad Str Assign NameStore BinOpFloorDiv NameLoad Call NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore ListLoad TupleLoad Str TupleLoad TupleLoad Str TupleLoad TupleLoad Str TupleLoad TupleLoad Str TupleLoad Call NameLoad Str BinOpMult Str Num TryFinally body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad If CompareNotEq Call AttributeLoad NameLoad attr NameLoad body Expr TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Str BinOpMult Str Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad TryFinally body For NameStore NameLoad body Pass TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad decorator_list FunctionDef arguments args defaults body TryFinally body Expr Call NameLoad NameLoad NameLoad finalbody If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A sys N/A os N/A gc N/A unittest array array weakref proxy test.test_support TESTFN findfile run_unittest test.test_support gc_collect impl_detail UserList UserList AutoFileTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self f N/A open TESTFN wb N/A tearDown N/A N/A self N/A N/A N/A N/A self f N/A N/A N/A N/A N/A self f close N/A N/A N/A os remove TESTFN N/A testWeakRefs N/A N/A self N/A N/A N/A p N/A proxy N/A self f N/A N/A N/A p write teststring N/A N/A N/A self assertEquals N/A N/A self f name N/A p name N/A N/A N/A N/A self f close N/A N/A self f None N/A N/A gc_collect N/A N/A N/A self assertRaises ReferenceError getattr p name N/A testAttributes N/A N/A self N/A N/A N/A f N/A self f N/A softspace N/A f softspace N/A N/A f name N/A N/A f mode N/A N/A f closed N/A N/A f softspace softspace N/A attr N/A name mode closed N/A N/A N/A N/A self assertRaises N/A AttributeError TypeError setattr f attr oops N/A testReadinto N/A N/A self N/A N/A N/A N/A N/A N/A self f write 12 N/A N/A N/A N/A self f close N/A a N/A array c N/A x 10 N/A N/A self f N/A open TESTFN rb N/A n N/A N/A N/A self f readinto a N/A N/A N/A self assertEquals 12 N/A N/A N/A a tostring N/A n N/A testWritelinesUserList N/A N/A self N/A N/A N/A l N/A 1 2 N/A N/A N/A N/A self f writelines l N/A N/A N/A N/A self f close N/A N/A self f N/A open TESTFN rb N/A buf N/A N/A N/A self f read N/A N/A N/A self assertEquals buf 12 N/A testWritelinesIntegers N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A self f writelines N/A 1 2 3 N/A testWritelinesIntegersUserList N/A N/A self N/A N/A N/A l N/A 1 2 3 N/A N/A N/A self assertRaises TypeError N/A N/A self f writelines l N/A testWritelinesNonString N/A N/A self N/A N/A NonString N/A N/A N/A N/A N/A testRepr N/A N/A self N/A N/A N/A N/A N/A self assert_ N/A N/A N/A repr N/A self f startswith N/A <open file ' TESTFN N/A testErrors N/A N/A self N/A N/A N/A f N/A self f N/A N/A N/A self assertEquals N/A f name TESTFN N/A N/A N/A self assert_ N/A N/A N/A f isatty N/A N/A N/A self assert_ N/A N/A f closed N/A N/A N/A self assertRaises TypeError N/A f readinto N/A N/A N/A f close N/A N/A N/A self assert_ N/A f closed N/A testMethods N/A N/A self N/A N/A N/A a N/A array c N/A x 10 N/A methods N/A fileno flush isatty next read readinto readline readlines seek tell truncate write writelines xreadlines __iter__ N/A N/A N/A N/A N/A N/A a N/A N/A N/A 0 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A sys platform startswith atheos N/A N/A N/A methods N/A truncate N/A N/A N/A N/A self f __exit__ None None None N/A N/A N/A self assert_ N/A N/A self f closed N/A N/A methodname args N/A N/A methods items N/A N/A method N/A getattr N/A self f methodname N/A N/A N/A self assertRaises ValueError method args N/A N/A N/A self assertEquals N/A N/A N/A self f __exit__ None None None None N/A N/A N/A N/A 1 0 N/A N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A self f __exit__ N/A N/A sys exc_info None N/A N/A OtherFileTests N/A N/A unittest TestCase N/A testModeStrings N/A N/A self N/A N/A N/A mode N/A aU wU+ N/A N/A N/A N/A f N/A open TESTFN mode N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A f close N/A N/A N/A self fail N/A %r is an invalid file mode mode N/A testStdin N/A N/A self N/A N/A N/A N/A N/A os isatty N/A N/A N/A sys stdin fileno N/A N/A N/A N/A sys platform osf1V5 N/A N/A N/A N/A self assertRaises IOError N/A N/A sys stdin seek -1 N/A N/A N/A sys __stdout__   Skipping sys.stdin.seek(-1), it may crash the interpreter. Test manually. N/A N/A N/A self assertRaises IOError N/A N/A sys stdin truncate N/A testUnicodeOpen N/A N/A self N/A N/A N/A f N/A open N/A unicode TESTFN w N/A N/A N/A self assert_ N/A N/A N/A repr f startswith N/A <open file u' TESTFN N/A N/A N/A f close N/A N/A N/A os unlink TESTFN N/A testBadModeArgument N/A N/A self N/A N/A N/A bad_mode qwerty N/A N/A N/A f N/A open TESTFN bad_mode N/A N/A N/A ValueError N/A msg N/A N/A N/A N/A msg N/A 0 0 N/A N/A s N/A str msg N/A N/A N/A N/A N/A s find TESTFN -1 N/A N/A N/A s find bad_mode -1 N/A N/A N/A N/A self fail N/A bad error message for invalid mode: %s s N/A N/A N/A N/A f close N/A N/A N/A self fail N/A no error for invalid mode: %s bad_mode N/A testSetBufferSize N/A N/A self N/A N/A N/A s N/A -1 0 1 512 N/A N/A N/A N/A f N/A open TESTFN w s N/A N/A N/A f write N/A str s N/A N/A N/A f close N/A N/A N/A f close N/A f N/A open TESTFN r s N/A d N/A int N/A N/A f read N/A N/A N/A f close N/A N/A N/A f close N/A N/A N/A IOError N/A msg N/A N/A N/A N/A self fail N/A error setting buffer size %d: %s N/A s N/A str msg N/A N/A N/A self assertEquals d s N/A testTruncateOnWindows N/A N/A self N/A N/A N/A N/A N/A os unlink TESTFN bug801631 N/A N/A N/A N/A N/A f N/A open TESTFN wb N/A N/A N/A f write 12345678901 N/A N/A N/A f close N/A f N/A open TESTFN rb+ N/A data N/A N/A f read 5 N/A N/A data 12345 N/A N/A N/A N/A self fail N/A Read on file opened for update failed %r data N/A N/A N/A N/A f tell 5 N/A N/A N/A N/A self fail N/A File pos after read wrong %d N/A N/A f tell N/A N/A N/A f truncate N/A N/A N/A N/A f tell 5 N/A N/A N/A N/A self fail N/A File pos after ftruncate wrong %d N/A N/A f tell N/A N/A N/A f close N/A size N/A N/A N/A os path getsize TESTFN N/A N/A size 5 N/A N/A N/A N/A self fail N/A File size after ftruncate wrong %d size N/A N/A N/A N/A N/A bug801631 N/A N/A N/A N/A os unlink TESTFN N/A testIteration N/A N/A self N/A N/A N/A dataoffset 16384 N/A filler ham
 N/A N/A N/A dataoffset N/A len filler dataoffset must be multiple of len(filler) N/A nchunks N/A dataoffset N/A len filler N/A testlines N/A spam, spam and eggs
 eggs, spam, ham and spam
 saussages, spam, spam and eggs
 spam, ham, spam and eggs
 spam, spam, spam, spam, spam, ham, spam
 wonderful spaaaaaam.
 N/A methods N/A N/A readline N/A N/A read N/A N/A readlines N/A N/A readinto N/A N/A array c N/A 100 N/A N/A N/A bag N/A open TESTFN w N/A N/A N/A bag write N/A filler nchunks N/A N/A N/A bag writelines testlines N/A N/A N/A bag close N/A N/A methodname args methods N/A N/A f N/A open TESTFN N/A N/A N/A N/A f next filler N/A N/A N/A N/A self fail Broken testfile N/A meth N/A getattr f methodname N/A N/A N/A N/A meth args N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A self fail N/A %s%r after next() didn't raise ValueError N/A methodname args N/A N/A N/A f close N/A f N/A open TESTFN N/A i N/A range nchunks N/A N/A N/A N/A f next N/A testline N/A N/A testlines pop 0 N/A N/A N/A line N/A N/A f readline N/A N/A N/A ValueError N/A N/A N/A N/A self fail readline() after next() with supposedly empty iteration-buffer failed anyway N/A N/A line testline N/A N/A N/A N/A self fail N/A readline() after next() with empty buffer failed. Got %r, expected %r N/A line testline N/A testline N/A N/A testlines pop 0 N/A buf N/A array c N/A N/A len testline N/A N/A N/A N/A N/A f readinto buf N/A N/A N/A ValueError N/A N/A N/A N/A self fail readinto() after next() with supposedly empty iteration-buffer failed anyway N/A line N/A N/A buf tostring N/A N/A line testline N/A N/A N/A N/A self fail N/A readinto() after next() with empty buffer failed. Got %r, expected %r N/A line testline N/A testline N/A N/A testlines pop 0 N/A N/A N/A line N/A N/A f read N/A len testline N/A N/A N/A ValueError N/A N/A N/A N/A self fail read() after next() with supposedly empty iteration-buffer failed anyway N/A N/A line testline N/A N/A N/A N/A self fail N/A read() after next() with empty buffer failed. Got %r, expected %r N/A line testline N/A N/A N/A lines N/A N/A f readlines N/A N/A N/A ValueError N/A N/A N/A N/A self fail readlines() after next() with supposedly empty iteration-buffer failed anyway N/A N/A lines testlines N/A N/A N/A N/A self fail N/A readlines() after next() with empty buffer failed. Got %r, expected %r N/A line testline N/A f N/A open TESTFN N/A N/A N/A line f N/A N/A N/A N/A N/A N/A N/A f readline N/A N/A N/A f readinto buf N/A N/A N/A f read N/A N/A N/A f readlines N/A N/A N/A ValueError N/A N/A N/A N/A self fail read* failed after next() consumed file N/A N/A N/A N/A f close N/A N/A N/A N/A os unlink TESTFN N/A N/A impl_detail N/A test_main N/A N/A N/A N/A N/A N/A N/A N/A run_unittest AutoFileTests OtherFileTests N/A N/A N/A N/A N/A os path exists TESTFN N/A N/A N/A N/A os unlink TESTFN N/A N/A N/A __name__ __main__ N/A N/A N/A test_main