@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', 'https://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'])

@ 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' , 'https://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 .