Module Import alias alias alias alias Import alias ImportFrom alias If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore NameLoad Break Assign NameStore Str If NameLoad body TryExcept body ImportFrom alias Assign NameStore TupleLoad Str Str handlers ExceptHandler type NameLoad body Assign NameStore TupleLoad Str Str Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass orelse AugAssignAdd NameStore TupleLoad Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad ListLoad If UnaryOpNot Call NameLoad NameLoad Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore ListLoad Str Str Str body If Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad body Assign NameStore SubscriptLoad NameLoad Slice BinOpSub UnaryOpUSub Call NameLoad NameLoad Num Break Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list Expr Call NameLoad Str Expr Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad BinOpAdd NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad TryFinally body Assign NameStore Call NameLoad BinOpAdd NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad finalbody Delete AttributeDel NameLoad attr Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list decorator_list
N/A N/A py os sys shutil N/A subprocess testing.udir udir N/A N/A N/A sys platform win32 N/A N/A N/A N/A N/A py test skip snippets do not run on win32 N/A N/A N/A sys version_info N/A 2 7 N/A N/A N/A N/A N/A py test skip fails e.g. on a Debian/Ubuntu which patches virtualenv in a non-2.6-friendly way create_venv N/A N/A name N/A N/A N/A tmpdir N/A N/A udir join name N/A N/A N/A N/A N/A subprocess check_call N/A virtualenv --distribute -p N/A N/A N/A os path abspath N/A sys executable N/A str tmpdir N/A N/A N/A OSError N/A e N/A N/A N/A N/A N/A py test skip N/A Cannot execute virtualenv: %s N/A e N/A site_packages None N/A N/A dirpath dirnames filenames N/A N/A os walk N/A str tmpdir N/A N/A N/A N/A N/A N/A os path basename dirpath site-packages N/A N/A site_packages dirpath N/A N/A paths N/A site_packages N/A N/A N/A cffi _pycparser N/A modules N/A cffi _cffi_backend N/A N/A N/A ImportError N/A N/A modules N/A cffi _cffi_backend pycparser N/A N/A N/A ply N/A N/A N/A ImportError N/A N/A N/A N/A modules N/A ply N/A paths N/A N/A module modules N/A N/A target N/A __import__ module None None N/A N/A N/A N/A hasattr target __file__ N/A N/A N/A src N/A N/A N/A os path abspath N/A target __file__ N/A end N/A __init__.pyc __init__.pyo __init__.py N/A N/A N/A N/A N/A N/A src lower endswith end N/A N/A src N/A src N/A N/A N/A N/A len end 1 N/A N/A N/A N/A paths append N/A N/A N/A os path dirname src N/A paths N/A N/A N/A os pathsep join paths N/A N/A tmpdir paths N/A N/A SNIPPET_DIR N/A N/A N/A N/A N/A py path local __file__ join .. snippets really_run_setup_and_program N/A N/A dirname venv_dir_and_paths python_snippet N/A N/A N/A N/A venv_dir paths venv_dir_and_paths remove N/A N/A dir N/A N/A N/A dir N/A str N/A N/A SNIPPET_DIR join dirname dir N/A N/A N/A shutil rmtree dir ignore_errors True N/A N/A N/A remove build N/A N/A remove __pycache__ N/A basedir N/A N/A os listdir N/A str N/A N/A SNIPPET_DIR join dirname N/A N/A N/A remove N/A N/A N/A os path join basedir __pycache__ N/A olddir N/A N/A os getcwd N/A python_f N/A N/A udir join x.py N/A N/A N/A python_f write N/A N/A N/A py code Source python_snippet N/A N/A N/A N/A N/A os chdir N/A str N/A N/A SNIPPET_DIR join dirname N/A N/A N/A os name nt N/A N/A bindir Scripts N/A N/A bindir bin N/A vp N/A str N/A N/A N/A N/A venv_dir join bindir join python N/A env N/A N/A N/A os environ copy N/A N/A env N/A PYTHONPATH paths N/A N/A N/A subprocess check_call N/A vp setup.py clean env env N/A N/A N/A subprocess check_call N/A vp setup.py install env env N/A N/A N/A subprocess check_call N/A vp N/A str python_f env env N/A N/A N/A N/A os chdir olddir N/A run_setup_and_program N/A N/A dirname python_snippet N/A N/A N/A venv_dir N/A create_venv N/A dirname -cpy N/A N/A really_run_setup_and_program dirname venv_dir python_snippet N/A N/A sys _force_generic_engine_ True N/A N/A N/A venv_dir N/A create_venv N/A dirname -gen N/A N/A really_run_setup_and_program dirname venv_dir python_snippet N/A N/A N/A sys _force_generic_engine_ N/A N/A N/A N/A N/A os path exists N/A str N/A N/A SNIPPET_DIR join dirname lextab.py N/A N/A N/A N/A N/A os path exists N/A str N/A N/A SNIPPET_DIR join dirname yacctab.py N/A TestZIntegration N/A object N/A teardown_class N/A N/A self N/A N/A N/A N/A N/A udir isdir N/A N/A N/A N/A udir remove ignore_errors True N/A N/A N/A udir ensure dir 1 N/A test_infrastructure N/A N/A self N/A N/A N/A N/A run_setup_and_program infrastructure 
        import snip_infrastructure
        assert snip_infrastructure.func() == 42
         N/A test_distutils_module N/A N/A self N/A N/A N/A N/A run_setup_and_program distutils_module 
        import snip_basic_verify
        p = snip_basic_verify.C.getpwuid(0)
        assert snip_basic_verify.ffi.string(p.pw_name) == b"root"
         N/A test_distutils_package_1 N/A N/A self N/A N/A N/A N/A run_setup_and_program distutils_package_1 
        import snip_basic_verify1
        p = snip_basic_verify1.C.getpwuid(0)
        assert snip_basic_verify1.ffi.string(p.pw_name) == b"root"
         N/A test_distutils_package_2 N/A N/A self N/A N/A N/A N/A run_setup_and_program distutils_package_2 
        import snip_basic_verify2
        p = snip_basic_verify2.C.getpwuid(0)
        assert snip_basic_verify2.ffi.string(p.pw_name) == b"root"
         N/A test_setuptools_module N/A N/A self N/A N/A N/A N/A run_setup_and_program setuptools_module 
        import snip_setuptools_verify
        p = snip_setuptools_verify.C.getpwuid(0)
        assert snip_setuptools_verify.ffi.string(p.pw_name) == b"root"
         N/A test_setuptools_package_1 N/A N/A self N/A N/A N/A N/A run_setup_and_program setuptools_package_1 
        import snip_setuptools_verify1
        p = snip_setuptools_verify1.C.getpwuid(0)
        assert snip_setuptools_verify1.ffi.string(p.pw_name) == b"root"
         N/A test_setuptools_package_2 N/A N/A self N/A N/A N/A N/A run_setup_and_program setuptools_package_2 
        import snip_setuptools_verify2
        p = snip_setuptools_verify2.C.getpwuid(0)
        assert snip_setuptools_verify2.ffi.string(p.pw_name) == b"root"
         N/A N/A