Module Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Import alias Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Import alias Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A imp N/A unittest test test_support LockTests N/A N/A unittest TestCase N/A N/A Very basic test of import lock functions. verify_lock_state N/A N/A self expected N/A N/A N/A N/A N/A self assertEqual N/A N/A imp lock_held expected N/A expected imp.lock_held() to be %r expected N/A testLock N/A N/A self N/A N/A N/A LOOPS 50 N/A lock_held_at_start N/A N/A imp lock_held N/A N/A N/A self verify_lock_state lock_held_at_start N/A i N/A range LOOPS N/A N/A N/A N/A imp acquire_lock N/A N/A N/A self verify_lock_state True N/A i N/A range LOOPS N/A N/A N/A N/A imp release_lock N/A N/A N/A self verify_lock_state lock_held_at_start N/A N/A lock_held_at_start N/A N/A N/A N/A N/A N/A imp release_lock N/A N/A N/A RuntimeError N/A N/A N/A N/A N/A N/A self fail release_lock() without lock should raise RuntimeError N/A N/A ReloadTests N/A N/A unittest TestCase N/A N/A Very basic tests to make sure that imp.reload() operates just like
    reload(). test_source N/A N/A self N/A N/A N/A N/A N/A test_support EnvironmentVarGuard N/A N/A os N/A N/A N/A imp reload os N/A test_extension N/A N/A self N/A N/A N/A N/A N/A test_support CleanImport time N/A N/A time N/A N/A N/A imp reload time N/A test_builtin N/A N/A self N/A N/A N/A N/A N/A test_support CleanImport marshal N/A N/A marshal N/A N/A N/A imp reload marshal N/A N/A test_main N/A N/A N/A N/A N/A tests N/A ReloadTests N/A N/A N/A thread N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A tests append LockTests N/A N/A N/A test_support run_unittest tests N/A N/A N/A __name__ __main__ N/A N/A N/A test_main