mirror of https://github.com/pypa/pip
speeding up test_uninstall_editable_with_source_outside_venv by using pip-test-package instead of virtualenv
before: 1 passed, 12 deselected in 218.41 seconds after: 1 passed, 12 deselected in 3.42 seconds
This commit is contained in:
parent
a0189e7dba
commit
d326d60724
|
@ -196,7 +196,7 @@ def test_uninstall_editable_with_source_outside_venv(script, tmpdir):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
temp = mkdtemp()
|
temp = mkdtemp()
|
||||||
tmpdir = join(temp, 'virtualenv')
|
tmpdir = join(temp, 'pip-test-package')
|
||||||
_test_uninstall_editable_with_source_outside_venv(
|
_test_uninstall_editable_with_source_outside_venv(
|
||||||
script,
|
script,
|
||||||
tmpdir,
|
tmpdir,
|
||||||
|
@ -211,7 +211,7 @@ def _test_uninstall_editable_with_source_outside_venv(
|
||||||
result = script.run(
|
result = script.run(
|
||||||
'git', 'clone',
|
'git', 'clone',
|
||||||
local_repo(
|
local_repo(
|
||||||
'git+git://github.com/pypa/virtualenv',
|
'git+git://github.com/pypa/pip-test-package',
|
||||||
cache_dir,
|
cache_dir,
|
||||||
),
|
),
|
||||||
tmpdir,
|
tmpdir,
|
||||||
|
@ -219,9 +219,9 @@ def _test_uninstall_editable_with_source_outside_venv(
|
||||||
)
|
)
|
||||||
result2 = script.pip('install', '-e', tmpdir)
|
result2 = script.pip('install', '-e', tmpdir)
|
||||||
assert join(
|
assert join(
|
||||||
script.site_packages, 'virtualenv.egg-link'
|
script.site_packages, 'pip-test-package.egg-link'
|
||||||
) in result2.files_created, list(result2.files_created.keys())
|
) in result2.files_created, list(result2.files_created.keys())
|
||||||
result3 = script.pip('uninstall', '-y', 'virtualenv', expect_error=True)
|
result3 = script.pip('uninstall', '-y', 'pip-test-package', expect_error=True)
|
||||||
assert_all_changes(
|
assert_all_changes(
|
||||||
result,
|
result,
|
||||||
result3,
|
result3,
|
||||||
|
|
Loading…
Reference in New Issue