@pytest.mark.network
def test_git_branch_should_not_be_changed(script, tmpdir):
 script.pip('install', '-e', ('%s#egg=pip-test-package' % local_checkout('git+http://github.com/pypa/pip-test-package.git', tmpdir.join('cache'))), expect_error=True)
 source_dir = ((script.venv_path / 'src') / 'pip-test-package')
 result = script.run('git', 'branch', cwd=source_dir)
 assert ('* master' in result.stdout), result.stdout

@ pytest . mark . network def test_git_branch_should_not_be_changed ( script , tmpdir ) : script . pip ( 'install' , '-e' , ( '%s#egg=pip-test-package' % local_checkout ( 'git+http://github.com/pypa/pip-test-package.git' , tmpdir . join ( 'cache' ) ) ) , expect_error = True ) source_dir = ( ( script . venv_path / 'src' ) / 'pip-test-package' ) result = script . run ( 'git' , 'branch' , cwd = source_dir ) assert ( '* master' in result . stdout ) , result . stdout
editable installations should not change branch related to issue #32 and #161 .