Skip to content

Commit 07e27b4

Browse files
committed
Remove legacy editable tests
1 parent d410ac4 commit 07e27b4

File tree

3 files changed

+0
-67
lines changed

3 files changed

+0
-67
lines changed

tests/functional/test_install.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -895,41 +895,6 @@ def test_editable_install__local_dir_no_setup_py(
895895
)
896896

897897

898-
@pytest.mark.skipif(
899-
sys.version_info >= (3, 12),
900-
reason="Setuptools<64 does not support Python 3.12+",
901-
)
902-
@pytest.mark.network
903-
def test_editable_install_legacy__local_dir_no_setup_py_with_pyproject(
904-
script: PipTestEnvironment,
905-
) -> None:
906-
"""
907-
Test installing in legacy editable mode from a local directory with no
908-
setup.py but that does have pyproject.toml with a build backend that does
909-
not support the build_editable hook.
910-
"""
911-
local_dir = script.scratch_path.joinpath("temp")
912-
local_dir.mkdir()
913-
pyproject_path = local_dir.joinpath("pyproject.toml")
914-
pyproject_path.write_text(
915-
textwrap.dedent(
916-
"""
917-
[build-system]
918-
requires = ["setuptools<64"]
919-
build-backend = "setuptools.build_meta"
920-
"""
921-
)
922-
)
923-
924-
result = script.pip("install", "-e", local_dir, expect_error=True)
925-
assert not result.files_created
926-
927-
msg = result.stderr
928-
assert "has a 'pyproject.toml'" in msg
929-
assert "does not have a 'setup.py' nor a 'setup.cfg'" in msg
930-
assert "cannot be installed in editable mode" in msg
931-
932-
933898
def test_editable_install__local_dir_setup_requires_with_pyproject(
934899
script: PipTestEnvironment, shared_data: TestData
935900
) -> None:

tests/functional/test_install_direct_url.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ def test_install_find_links_no_direct_url(script: PipTestEnvironment) -> None:
1111
assert not get_created_direct_url(result, "simple")
1212

1313

14-
def test_install_vcs_editable_no_direct_url(script: PipTestEnvironment) -> None:
15-
pkg_path = _create_test_package(script.scratch_path, name="testpkg")
16-
args = ["install", "-e", f"git+{pkg_path.as_uri()}#egg=testpkg"]
17-
result = script.pip(*args)
18-
# legacy editable installs do not generate .dist-info,
19-
# hence no direct_url.json
20-
assert not get_created_direct_url(result, "testpkg")
21-
22-
2314
def test_install_vcs_non_editable_direct_url(script: PipTestEnvironment) -> None:
2415
pkg_path = _create_test_package(script.scratch_path, name="testpkg")
2516
url = pkg_path.as_uri()

tests/functional/test_install_vcs_git.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -339,29 +339,6 @@ def test_install_git_logs_commit_sha(
339339
assert f"Resolved {base_local_url[4:]} to commit {expected_sha}" in result.stdout
340340

341341

342-
@pytest.mark.network
343-
def test_git_with_tag_name_and_update(script: PipTestEnvironment, tmpdir: Path) -> None:
344-
"""
345-
Test cloning a git repository and updating to a different version.
346-
"""
347-
url_path = "pypa/pip-test-package.git"
348-
base_local_url = _github_checkout(url_path, tmpdir)
349-
350-
local_url = f"{base_local_url}#egg=pip-test-package"
351-
result = script.pip("install", "-e", local_url)
352-
result.assert_installed("pip-test-package", with_files=[".git"])
353-
354-
new_local_url = f"{base_local_url}@0.1.2#egg=pip-test-package"
355-
result = script.pip(
356-
"install",
357-
"--global-option=--version",
358-
"-e",
359-
new_local_url,
360-
allow_stderr_warning=True,
361-
)
362-
assert "0.1.2" in result.stdout
363-
364-
365342
@pytest.mark.network
366343
def test_git_branch_should_not_be_changed(
367344
script: PipTestEnvironment, tmpdir: Path

0 commit comments

Comments
 (0)