Skip to content

Commit a9a340c

Browse files
committed
Remove legacy 'setup.py clean' tests
1 parent 663622e commit a9a340c

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

tests/functional/test_install.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,14 +1665,6 @@ def test_install_topological_sort(script: PipTestEnvironment, data: TestData) ->
16651665
assert order1 in res or order2 in res, res
16661666

16671667

1668-
def test_cleanup_after_failed_wheel(script: PipTestEnvironment) -> None:
1669-
res = script.pip_install_local("wheelbrokenafter", expect_error=True)
1670-
assert "ERROR: Failed building wheel for wheelbrokenafter" in res.stderr
1671-
# OK, assert that we *said* we were cleaning up:
1672-
# /!\ if in need to change this, also change test_pep517_no_legacy_cleanup
1673-
assert "Running setup.py clean for wheelbrokenafter" in str(res), str(res)
1674-
1675-
16761668
def test_install_builds_wheels(script: PipTestEnvironment, data: TestData) -> None:
16771669
# We need to use a subprocess to get the right value on Windows.
16781670
res = script.run(

tests/functional/test_install_cleanup.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,3 @@ def test_no_clean_option_blocks_cleaning_after_install(
2828
allow_stderr_warning=True,
2929
)
3030
assert exists(build)
31-
32-
33-
@pytest.mark.network
34-
def test_pep517_no_legacy_cleanup(script: PipTestEnvironment, data: TestData) -> None:
35-
"""Test a PEP 517 failed build does not attempt a legacy cleanup"""
36-
to_install = data.packages.joinpath("pep517_wrapper_buildsys")
37-
script.environ["PIP_TEST_FAIL_BUILD_WHEEL"] = "1"
38-
res = script.pip("install", "-f", data.find_links, to_install, expect_error=True)
39-
# Must not have built the package
40-
expected = "Failed building wheel for pep517-wrapper-buildsys"
41-
assert expected in str(res)
42-
# Must not have attempted legacy cleanup
43-
assert "setup.py clean" not in str(res)

0 commit comments

Comments
 (0)