Module ImportFrom alias Import alias alias FunctionDef arguments args NameParam defaults body Expr BinOpDiv Num NameLoad Raise NameLoad NameLoad decorator_list If CompareEq AttributeLoad NameLoad attr Str body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TryFinally body Expr Call NameLoad NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Slice Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Slice Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A ctypes * N/A unittest sys callback_func N/A N/A arg N/A N/A N/A N/A 42 arg N/A ValueError arg N/A N/A N/A N/A sys platform win32 N/A call_function_TestCase N/A N/A unittest TestCase N/A test N/A N/A self N/A N/A _ctypes call_function N/A hdll N/A N/A N/A windll kernel32 LoadLibraryA kernel32 N/A funcaddr N/A N/A N/A windll kernel32 GetProcAddress hdll GetModuleHandleA N/A N/A N/A self failUnlessEqual N/A call_function funcaddr N/A None N/A N/A N/A windll kernel32 GetModuleHandleA None N/A N/A CallbackTracbackTestCase N/A N/A unittest TestCase N/A capture_stderr N/A N/A self func N/A args kw N/A N/A StringIO N/A old_stderr N/A sys stderr N/A logger N/A sys stderr N/A N/A StringIO StringIO N/A N/A N/A N/A func args kw N/A N/A N/A sys stderr old_stderr N/A N/A N/A logger getvalue N/A test_ValueError N/A N/A self N/A N/A N/A cb N/A N/A CFUNCTYPE c_int c_int callback_func N/A out N/A N/A self capture_stderr cb 42 N/A N/A N/A self failUnlessEqual N/A N/A N/A out splitlines N/A -1 ValueError: 42 N/A test_IntegerDivisionError N/A N/A self N/A N/A N/A cb N/A N/A CFUNCTYPE c_int c_int callback_func N/A out N/A N/A self capture_stderr cb 0 N/A N/A N/A self failUnlessEqual N/A N/A N/A N/A out splitlines N/A -1 N/A 19 ZeroDivisionError:  N/A test_FloatDivisionError N/A N/A self N/A N/A N/A cb N/A N/A CFUNCTYPE c_int c_double callback_func N/A out N/A N/A self capture_stderr cb 0.0 N/A N/A N/A self failUnlessEqual N/A N/A N/A N/A out splitlines N/A -1 N/A 19 ZeroDivisionError:  N/A test_TypeErrorDivisionError N/A N/A self N/A N/A N/A cb N/A N/A CFUNCTYPE c_int c_char_p callback_func N/A out N/A N/A self capture_stderr cb spam N/A N/A N/A self failUnlessEqual N/A N/A N/A out splitlines N/A -1 TypeError: unsupported operand type(s) for /: 'int' and 'str' N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main