Skip to content

Commit e350ea5

Browse files
committed
Update uninstall tests that depend on legacy install methods
1 parent afc182d commit e350ea5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/functional/test_uninstall.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def _test_uninstall_editable_with_source_outside_venv(
437437
temp_pkg_dir,
438438
expect_stderr=True,
439439
)
440-
result2 = script.pip("install", "-e", temp_pkg_dir)
440+
result2 = script.run("python", "setup.py", "develop", cwd=temp_pkg_dir)
441441
result2.did_create(join(script.site_packages, "pip-test-package.egg-link"))
442442
result3 = script.pip("uninstall", "-y", "pip-test-package")
443443
assert_all_changes(
@@ -665,7 +665,7 @@ def test_uninstall_editable_and_pip_install(
665665
script.environ["SETUPTOOLS_SYS_PATH_TECHNIQUE"] = "raw"
666666

667667
pkg_path = data.packages.joinpath("FSPkg")
668-
script.pip("install", "-e", ".", expect_stderr=True, cwd=pkg_path)
668+
script.run("python", "setup.py", "develop", expect_stderr=True, cwd=pkg_path)
669669
# ensure both are installed with --ignore-installed:
670670
script.pip("install", "--ignore-installed", ".", expect_stderr=True, cwd=pkg_path)
671671
script.assert_installed(FSPkg="0.1.dev0")
@@ -702,7 +702,7 @@ def test_uninstall_editable_and_pip_install_easy_install_remove(
702702

703703
# Install FSPkg
704704
pkg_path = data.packages.joinpath("FSPkg")
705-
script.pip("install", "-e", ".", expect_stderr=True, cwd=pkg_path)
705+
script.run("python", "setup.py", "develop", expect_stderr=True, cwd=pkg_path)
706706

707707
# Rename easy-install.pth to pip-test-fspkg.pth
708708
easy_install_pth = join(script.site_packages_path, "easy-install.pth")

tests/functional/test_uninstall_user.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def test_uninstall_editable_from_usersite(
9292

9393
# install
9494
to_install = data.packages.joinpath("FSPkg")
95-
result1 = script.pip("install", "--user", "-e", to_install)
95+
result1 = script.run(
96+
"python", "setup.py", "develop", "--user", "--prefix=", cwd=to_install
97+
)
9698
egg_link = script.user_site / "FSPkg.egg-link"
9799
result1.did_create(egg_link)
98100

0 commit comments

Comments
 (0)