@pytest.mark.network
def test_upgrade_vcs_req_with_dist_found(script):
 req = ('%s#egg=pretend' % 'git+git://github.com/alex/pretend@e7f26ad7dbcb4a02a4995aade4743aad47656b27')
 script.pip('install', req, expect_stderr=True)
 result = script.pip('install', '-U', req, expect_stderr=True)
 assert ('pypi.python.org' not in result.stdout), result.stdout

@ pytest . mark . network def test_upgrade_vcs_req_with_dist_found ( script ) : req = ( '%s#egg=pretend' % 'git+git://github.com/alex/pretend@e7f26ad7dbcb4a02a4995aade4743aad47656b27' ) script . pip ( 'install' , req , expect_stderr = True ) result = script . pip ( 'install' , '-U' , req , expect_stderr = True ) assert ( 'pypi.python.org' not in result . stdout ) , result . stdout
it can upgrade a vcs requirement that has distributions on the index .