@pytest.mark.network
def test_upgrade_vcs_req_with_no_dists_found(script, tmpdir):
 req = ('%s#egg=pip-test-package' % local_checkout('git+http://github.com/pypa/pip-test-package.git', tmpdir.join('cache')))
 script.pip('install', req)
 result = script.pip('install', '-U', req)
 assert (not result.returncode)

@ pytest . mark . network def test_upgrade_vcs_req_with_no_dists_found ( script , tmpdir ) : req = ( '%s#egg=pip-test-package' % local_checkout ( 'git+http://github.com/pypa/pip-test-package.git' , tmpdir . join ( 'cache' ) ) ) script . pip ( 'install' , req ) result = script . pip ( 'install' , '-U' , req ) assert ( not result . returncode )
it can upgrade a vcs requirement that has no distributions otherwise .