|
18 | 18 | requirements_file, |
19 | 19 | ) |
20 | 20 | from tests.lib.local_repos import local_checkout |
21 | | -from tests.lib.wheel import make_wheel |
22 | 21 |
|
23 | 22 |
|
24 | 23 | class ArgRecordingSdist: |
@@ -944,29 +943,6 @@ def test_config_settings_local_to_package( |
944 | 943 | assert "--verbose" not in simple2_args |
945 | 944 |
|
946 | 945 |
|
947 | | -def test_nonpep517_setuptools_import_failure(script: PipTestEnvironment) -> None: |
948 | | - """Any import failures of `setuptools` should inform the user both that it's |
949 | | - not pip's fault, but also exactly what went wrong in the import.""" |
950 | | - # Install a poisoned version of 'setuptools' that fails to import. |
951 | | - name = "setuptools_poisoned" |
952 | | - module = """\ |
953 | | -raise ImportError("this 'setuptools' was intentionally poisoned") |
954 | | -""" |
955 | | - path = make_wheel(name, "0.1.0", extra_files={"setuptools.py": module}).save_to_dir( |
956 | | - script.scratch_path |
957 | | - ) |
958 | | - script.pip("install", "--no-index", path) |
959 | | - |
960 | | - result = script.pip_install_local("--no-use-pep517", "simple", expect_error=True) |
961 | | - nice_message = ( |
962 | | - "ERROR: Can not execute `setup.py`" |
963 | | - " since setuptools failed to import in the build environment" |
964 | | - ) |
965 | | - exc_message = "ImportError: this 'setuptools' was intentionally poisoned" |
966 | | - assert nice_message in result.stderr |
967 | | - assert exc_message in result.stderr |
968 | | - |
969 | | - |
970 | 946 | class TestEditableDirectURL: |
971 | 947 | def test_install_local_project( |
972 | 948 | self, script: PipTestEnvironment, data: TestData, common_wheels: Path |
|
0 commit comments