Commit a499dee6 authored by Jason R. Coombs's avatar Jason R. Coombs

Avoid hitting network during test_easy_install

parent fa6229bd
Avoid hitting network during test_easy_install.
......@@ -38,6 +38,16 @@ from .files import build_files
from .textwrap import DALS
@pytest.fixture(autouse=True)
def pip_disable_index(monkeypatch):
"""
Important: Disable the default index for pip to avoid
querying packages in the index and potentially resolving
and installing packages there.
"""
monkeypatch.setenv('PIP_NO_INDEX', 'true')
class FakeDist:
def get_entry_map(self, group):
if group != 'console_scripts':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment