Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
a499dee6
Commit
a499dee6
authored
Jan 16, 2021
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid hitting network during test_easy_install
parent
fa6229bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
changelog.d/2525.misc.rst
changelog.d/2525.misc.rst
+1
-0
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+10
-0
No files found.
changelog.d/2525.misc.rst
0 → 100644
View file @
a499dee6
Avoid hitting network during test_easy_install.
setuptools/tests/test_easy_install.py
View file @
a499dee6
...
...
@@ -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'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment