diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-16 16:58:28 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-16 16:58:28 -0500 |
| commit | aaf8eb94dad0e5f4dce7bb1b51e586c08e3a4319 (patch) | |
| tree | 7b20465f930a335be978d67f92fea74c6639f561 | |
| parent | d2b1f7ebd6ebd57b4a50bc6660e93b31129bacb4 (diff) | |
| download | python-setuptools-git-51.2.0.tar.gz | |
Disable PIP_NO_INDEX for tests that override the index. Ref #2534.v51.2.0
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 93ac23e4..6aa17e94 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -455,6 +455,7 @@ class TestSetupRequires: """ monkeypatch.setenv(str('PIP_RETRIES'), str('0')) monkeypatch.setenv(str('PIP_TIMEOUT'), str('0')) + monkeypatch.setenv('PIP_NO_INDEX', 'false') with contexts.quiet(): # create an sdist that has a build-time dependency. with TestSetupRequires.create_sdist() as dist_file: @@ -628,6 +629,7 @@ class TestSetupRequires: def test_setup_requires_honors_pip_env(self, mock_index, monkeypatch): monkeypatch.setenv(str('PIP_RETRIES'), str('0')) monkeypatch.setenv(str('PIP_TIMEOUT'), str('0')) + monkeypatch.setenv('PIP_NO_INDEX', 'false') monkeypatch.setenv(str('PIP_INDEX_URL'), mock_index.url) with contexts.save_pkg_resources_state(): with contexts.tempdir() as temp_dir: |
