|
17 | 17 | ScriptFactory, |
18 | 18 | TestData, |
19 | 19 | TestPipResult, |
20 | | - create_basic_sdist_for_package, |
21 | 20 | create_really_basic_wheel, |
22 | 21 | ) |
23 | 22 | from tests.lib.server import MockServer, file_response |
@@ -1228,49 +1227,6 @@ def test_download_editable( |
1228 | 1227 | assert downloads[0].endswith(".zip") |
1229 | 1228 |
|
1230 | 1229 |
|
1231 | | -def test_download_use_pep517_propagation( |
1232 | | - script: PipTestEnvironment, tmpdir: Path, common_wheels: Path |
1233 | | -) -> None: |
1234 | | - """ |
1235 | | - Check that --use-pep517 applies not just to the requirements specified |
1236 | | - on the command line, but to their dependencies too. |
1237 | | - """ |
1238 | | - |
1239 | | - create_basic_sdist_for_package(script, "fake_proj", "1.0", depends=["fake_dep"]) |
1240 | | - |
1241 | | - # If --use-pep517 is in effect, then setup.py should be running in an isolated |
1242 | | - # environment that doesn't have pip in it. |
1243 | | - create_basic_sdist_for_package( |
1244 | | - script, |
1245 | | - "fake_dep", |
1246 | | - "1.0", |
1247 | | - setup_py_prelude=textwrap.dedent( |
1248 | | - """\ |
1249 | | - try: |
1250 | | - import pip |
1251 | | - except ImportError: |
1252 | | - pass |
1253 | | - else: |
1254 | | - raise Exception(f"not running in isolation") |
1255 | | - """ |
1256 | | - ), |
1257 | | - ) |
1258 | | - |
1259 | | - download_dir = tmpdir / "download_dir" |
1260 | | - script.pip( |
1261 | | - "download", |
1262 | | - f"--dest={download_dir}", |
1263 | | - "--no-index", |
1264 | | - f"--find-links={common_wheels}", |
1265 | | - f"--find-links={script.scratch_path}", |
1266 | | - "--use-pep517", |
1267 | | - "fake_proj", |
1268 | | - ) |
1269 | | - |
1270 | | - downloads = os.listdir(download_dir) |
1271 | | - assert len(downloads) == 2 |
1272 | | - |
1273 | | - |
1274 | 1230 | @pytest.fixture |
1275 | 1231 | def download_local_html_index( |
1276 | 1232 | script: PipTestEnvironment, |
|
0 commit comments