@pytest.mark.network
def test_upgrade_to_same_version_from_url(script):
    result = script.pip('install', 'INITools==0.3', expect_error=True)
    assert script.site_packages / 'initools' in result.files_created, (
        sorted(result.files_created.keys())
    )
    result2 = script.pip(
        'install',
        'http://pypi.python.org/packages/source/I/INITools/INITools-'
        '0.3.tar.gz',
        expect_error=True,
    )
    assert not result2.files_updated, 'INITools 0.3 reinstalled same version'
    result3 = script.pip('uninstall', 'initools', '-y', expect_error=True)
    assert_all_changes(result, result3, [script.venv / 'build', 'cache'])
When installing from a URL the same version that is already installed, no
dataset/ETHPy150Open pypa/pip/tests/functional/test_install_upgrade.py/test_upgrade_to_same_version_from_url