Module Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert AttributeLoad NameLoad attr Str Assert CompareIn BinOpMod BinOpDiv AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assert CompareIn BinOpMod BinOpDiv AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad Assert AttributeLoad NameLoad attr Str Assert CompareNotIn BinOpMod BinOpDiv AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str AttributeLoad NameLoad attr Str Str Assert UnaryOpNot AttributeLoad NameLoad attr Str Assert CompareIn Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareIn BinOpDiv AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Str Assert AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad Expr Call NameLoad NameLoad NameLoad ListLoad BinOpDiv AttributeLoad NameLoad attr Str Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert CompareIn BinOpDiv AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad Expr Call NameLoad NameLoad NameLoad ListLoad BinOpDiv AttributeLoad NameLoad attr Str Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert CompareIn BinOpDiv AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad Expr Call NameLoad NameLoad NameLoad ListLoad BinOpDiv AttributeLoad NameLoad attr Str Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert CompareIn BinOpDiv AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad Expr Call NameLoad NameLoad NameLoad ListLoad BinOpDiv AttributeLoad NameLoad attr Str Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str BinOpDiv AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Str BinOpDiv AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str BinOpDiv AttributeLoad NameLoad attr Str Str Expr Call NameLoad NameLoad NameLoad ListLoad BinOpDiv AttributeLoad NameLoad attr Str Str BinOpDiv AttributeLoad NameLoad attr Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Str Str Assert CompareIn BinOpDiv AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Str Str keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assert CompareEq AttributeLoad Call AttributeLoad NameLoad attr Str Str Str attr Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad ListLoad BinOpDiv AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str BinOpMod Str BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str BinOpMod Str BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareIn Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assert CompareNotIn BinOpMod BinOpDiv AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assert CompareIn BinOpMod BinOpDiv AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad Assert AttributeLoad NameLoad attr Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod BinOpDiv AttributeLoad NameLoad attr Str NameLoad Assert Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod BinOpDiv AttributeLoad NameLoad attr Str NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str Call NameLoad Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad keyword NameLoad Assert CompareNotIn Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore ListLoad Str BinOpDiv AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Num Str If BoolOpAnd CompareEq NameLoad Str UnaryOpNot NameLoad body Delete SubscriptDel AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str Assign AttributeStore NameLoad attr BinOpDiv BinOpDiv AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv AttributeLoad NameLoad attr Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv AttributeLoad NameLoad attr Str Str Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv AttributeLoad NameLoad attr Str Str Str BinOpMod Str AttributeLoad NameLoad attr Str Str keyword IfExp CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num NameLoad NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv AttributeLoad NameLoad attr Str Str keyword IfExp CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num NameLoad NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareIn Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num keyword Str decorator_list
N/A N/A os N/A sys N/A textwrap N/A pytest tests.lib assert_all_changes pyversion _create_test_package _change_test_package_version tests.lib.local_repos local_checkout test_no_upgrade_unless_requested N/A N/A script N/A N/A N/A 
    No upgrade if not specifically requested.

     N/A N/A N/A script pip install INITools==0.1 expect_error True N/A result N/A N/A script pip install INITools expect_error True N/A N/A N/A result files_created pip install INITools upgraded when it should not have N/A test_upgrade_to_specific_version N/A N/A script N/A N/A N/A 
    It does upgrade to specific version requested.

     N/A N/A N/A script pip install INITools==0.1 expect_error True N/A result N/A N/A script pip install INITools==0.2 expect_error True N/A N/A result files_created pip install with specific version did not upgrade N/A N/A N/A N/A N/A script site_packages INITools-0.1-py%s.egg-info pyversion N/A result files_deleted N/A N/A N/A N/A N/A script site_packages INITools-0.2-py%s.egg-info pyversion N/A result files_created N/A N/A N/A pytest mark network test_upgrade_if_requested N/A N/A script N/A N/A N/A 
    And it does upgrade if requested.

     N/A N/A N/A script pip install INITools==0.1 expect_error True N/A result N/A N/A script pip install --upgrade INITools expect_error True N/A N/A result files_created pip install --upgrade did not upgrade N/A N/A N/A N/A N/A script site_packages INITools-0.1-py%s.egg-info pyversion N/A result files_created N/A N/A N/A pytest mark network test_upgrade_with_newest_already_installed N/A N/A script data N/A N/A N/A 
    If the newest version of a package is already installed, the package should
    not be reinstalled and the user should be informed.
     N/A N/A N/A script pip install -f N/A data find_links --no-index simple N/A result N/A N/A script pip install --upgrade -f N/A data find_links --no-index simple N/A N/A N/A result files_created simple upgraded when it should not have N/A N/A already up-to-date N/A result stdout N/A result stdout N/A test_upgrade_force_reinstall_newest N/A N/A script N/A N/A N/A 
    Force reinstallation of a package even if it is already at its newest
    version if --force-reinstall is supplied.
     N/A result N/A N/A script pip install INITools N/A N/A N/A N/A script site_packages initools N/A result files_created N/A sorted N/A N/A N/A result files_created keys N/A result2 N/A N/A script pip install --upgrade --force-reinstall INITools N/A N/A result2 files_updated upgrade to INITools 0.3 failed N/A result3 N/A N/A script pip uninstall initools -y expect_error True N/A N/A assert_all_changes result result3 N/A N/A N/A script venv build cache N/A N/A N/A pytest mark network test_uninstall_before_upgrade N/A N/A script N/A N/A N/A 
    Automatic uninstall-before-upgrade.

     N/A result N/A N/A script pip install INITools==0.2 expect_error True N/A N/A N/A N/A script site_packages initools N/A result files_created N/A sorted N/A N/A N/A result files_created keys N/A result2 N/A N/A script pip install INITools==0.3 expect_error True N/A N/A result2 files_created upgrade to INITools 0.3 failed N/A result3 N/A N/A script pip uninstall initools -y expect_error True N/A N/A assert_all_changes result result3 N/A N/A N/A script venv build cache N/A N/A N/A pytest mark network test_uninstall_before_upgrade_from_url N/A N/A script N/A N/A N/A 
    Automatic uninstall-before-upgrade from URL.

     N/A result N/A N/A script pip install INITools==0.2 expect_error True N/A N/A N/A N/A script site_packages initools N/A result files_created N/A sorted N/A N/A N/A result files_created keys N/A result2 N/A N/A script pip install http://pypi.python.org/packages/source/I/INITools/INITools-0.3.tar.gz expect_error True N/A N/A result2 files_created upgrade to INITools 0.3 failed N/A result3 N/A N/A script pip uninstall initools -y expect_error True N/A N/A assert_all_changes result result3 N/A N/A N/A script venv build cache N/A N/A N/A pytest mark network test_upgrade_to_same_version_from_url N/A N/A script N/A N/A N/A 
    When installing from a URL the same version that is already installed, no
    need to uninstall and reinstall if --upgrade is not specified.

     N/A result N/A N/A script pip install INITools==0.3 expect_error True N/A N/A N/A N/A script site_packages initools N/A result files_created N/A sorted N/A N/A N/A result files_created keys N/A result2 N/A N/A script pip install http://pypi.python.org/packages/source/I/INITools/INITools-0.3.tar.gz expect_error True N/A N/A N/A result2 files_updated INITools 0.3 reinstalled same version N/A result3 N/A N/A script pip uninstall initools -y expect_error True N/A N/A assert_all_changes result result3 N/A N/A N/A script venv build cache N/A N/A N/A pytest mark network test_upgrade_from_reqs_file N/A N/A script N/A N/A N/A 
    Upgrade from a requirements file.

     N/A N/A N/A N/A N/A N/A script scratch_path join test-req.txt write N/A N/A textwrap dedent         PyLogo<0.4
        # and something else to test out:
        INITools==0.3
         N/A install_result N/A N/A script pip install -r N/A N/A script scratch_path test-req.txt N/A N/A N/A N/A N/A N/A script scratch_path join test-req.txt write N/A N/A textwrap dedent         PyLogo
        # and something else to test out:
        INITools
         N/A N/A N/A script pip install --upgrade -r N/A N/A script scratch_path test-req.txt N/A uninstall_result N/A N/A script pip uninstall -r N/A N/A script scratch_path test-req.txt -y N/A N/A assert_all_changes install_result uninstall_result N/A N/A N/A script venv build cache N/A N/A script scratch test-req.txt N/A N/A N/A pytest mark network test_uninstall_rollback N/A N/A script data N/A N/A N/A 
    Test uninstall-rollback (using test package with a setup.py
    crafted to fail on install).

     N/A result N/A N/A script pip install -f N/A data find_links --no-index broken==0.1 N/A N/A N/A N/A script site_packages broken.py N/A result files_created N/A list N/A N/A N/A result files_created keys N/A result2 N/A N/A script pip install -f N/A data find_links --no-index broken===0.2broken expect_error True N/A N/A N/A result2 returncode 1 N/A str result2 N/A N/A N/A N/A N/A script run python -c import broken; print(broken.VERSION) stdout 0.1
 N/A N/A assert_all_changes N/A result files_after result2 N/A N/A N/A script venv build N/A test_editable_git_upgrade N/A N/A script N/A N/A N/A 
    Test installing an editable git package from a repository, upgrading the
    repository, installing again, and check it gets the newer version
     N/A version_pkg_path N/A _create_test_package script N/A N/A N/A script pip install -e N/A %s#egg=version_pkg N/A git+file:// version_pkg_path N/A version N/A N/A script run version_pkg N/A N/A 0.1 N/A version stdout N/A N/A _change_test_package_version script version_pkg_path N/A N/A N/A script pip install -e N/A %s#egg=version_pkg N/A git+file:// version_pkg_path N/A version2 N/A N/A script run version_pkg N/A N/A some different version N/A version2 stdout N/A Output: %s N/A version2 stdout N/A N/A N/A pytest mark skipif test_should_not_install_always_from_cache N/A N/A script N/A N/A N/A 
    If there is an old cached package, pip should download the newer version
    Related to issue #175
     N/A N/A N/A script pip install INITools==0.2 expect_error True N/A N/A N/A script pip uninstall -y INITools N/A result N/A N/A script pip install INITools==0.1 expect_error True N/A N/A N/A N/A N/A script site_packages INITools-0.2-py%s.egg-info pyversion N/A result files_created N/A N/A N/A N/A N/A script site_packages INITools-0.1-py%s.egg-info pyversion N/A result files_created N/A N/A N/A pytest mark network test_install_with_ignoreinstalled_requested N/A N/A script N/A N/A N/A 
    Test old conflicting package is completely ignored
     N/A N/A N/A script pip install INITools==0.1 expect_error True N/A result N/A N/A script pip install -I INITools==0.3 expect_error True N/A N/A result files_created pip install -I did not install N/A N/A N/A N/A os path exists N/A N/A N/A script site_packages_path INITools-0.1-py%s.egg-info pyversion N/A N/A N/A N/A os path exists N/A N/A N/A script site_packages_path INITools-0.3-py%s.egg-info pyversion N/A N/A N/A pytest mark network test_upgrade_vcs_req_with_no_dists_found N/A N/A script tmpdir N/A N/A N/A It can upgrade a VCS requirement that has no distributions otherwise. N/A req N/A %s#egg=pip-test-package N/A local_checkout git+http://github.com/pypa/pip-test-package.git N/A N/A tmpdir join cache N/A N/A N/A script pip install req N/A result N/A N/A script pip install -U req N/A N/A N/A result returncode N/A N/A N/A pytest mark network test_upgrade_vcs_req_with_dist_found N/A N/A script N/A N/A N/A It can upgrade a VCS requirement that has distributions on the index. N/A req N/A %s#egg=pretend git+git://github.com/alex/pretend@e7f26ad7dbcb4a02a4995aade4743aad47656b27 N/A N/A N/A script pip install req expect_stderr True N/A result N/A N/A script pip install -U req expect_stderr True N/A N/A pypi.python.org N/A result stdout N/A result stdout N/A N/A N/A pytest mark network TestUpgradeDistributeToSetuptools N/A object N/A N/A 
    From pip1.4 to pip6, pip supported a set of "hacks" (see Issue #1122) to
    allow distribute to conflict with setuptools, so that the following would
    work to upgrade distribute:

     ``pip install -U  setuptools``

    In pip7, the hacks were removed.  This test remains to at least confirm pip
    can upgrade distribute to setuptools using:

      ``pip install -U distribute``

    The reason this works is that a final version of distribute (v0.7.3) was
    released that is simple wrapper with:

      install_requires=['setuptools>=0.7']

    The test use a fixed set of packages from our test packages dir. Note that
    virtualenv-1.9.1 contains distribute-0.6.34 and virtualenv-1.10 contains
    setuptools-0.9.7
     prep_ve N/A N/A self script version pip_src distribute N/A False N/A N/A N/A self script script N/A N/A N/A N/A self script pip_install_local N/A virtualenv==%s version N/A args N/A virtualenv N/A N/A N/A self script scratch_path VE N/A distribute N/A N/A N/A N/A args insert 1 --distribute N/A N/A N/A version 1.9.1 N/A distribute N/A N/A N/A N/A N/A self script environ N/A PYTHONDONTWRITEBYTECODE N/A N/A N/A N/A self script run args N/A N/A N/A sys platform win32 N/A N/A bindir Scripts N/A N/A bindir bin N/A N/A self ve_bin N/A N/A N/A N/A self script scratch_path VE bindir N/A N/A N/A N/A self script run N/A N/A self ve_bin pip uninstall -y pip N/A N/A N/A N/A self script run N/A N/A self ve_bin python setup.py install cwd pip_src expect_stderr True N/A test_from_distribute_6_to_setuptools_7 N/A N/A self script data virtualenv N/A N/A N/A N/A N/A self prep_ve script 1.9.1 N/A virtualenv pip_source_dir distribute True N/A result N/A N/A N/A self script run N/A N/A self ve_bin pip install --no-index N/A --find-links=%s N/A data find_links -U distribute expect_stderr N/A N/A N/A N/A sys version_info N/A 2 N/A 2 6 True False N/A N/A Found existing installation: distribute 0.6.34 N/A result stdout N/A result N/A N/A N/A self script run N/A N/A self ve_bin pip list expect_stderr N/A N/A N/A N/A sys version_info N/A 2 N/A 2 6 True False N/A N/A setuptools (0.9.8) N/A result stdout N/A N/A distribute (0.7.3) N/A result stdout N/A N/A N/A N/A pytest mark skipif N/A N/A sys version_info N/A 3 5 reason distribute doesn't work on Python 3.5 N/A