Skip to content

Commit

Permalink
Merge pull request #2515 from pypa/bugfix/safe-test-test
Browse files Browse the repository at this point in the history
Avoid hitting network during test_virtualenv.test_test_command.
  • Loading branch information
jaraco committed Dec 29, 2020
2 parents 36233fe + 3d4b6b0 commit ce8f29f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/2525.patch.rst
@@ -0,0 +1 @@
Avoid hitting network during test_virtualenv.test_test_command.
4 changes: 4 additions & 0 deletions setuptools/tests/test_virtualenv.py
Expand Up @@ -179,6 +179,10 @@ def test_test_command_install_requirements(virtualenv, tmpdir):
# Ensure pip/wheel packages are installed.
virtualenv.run(
"python -c \"__import__('pkg_resources').require(['pip', 'wheel'])\"")
# uninstall setuptools so that 'setup.py develop' works
virtualenv.run("python -m pip uninstall -y setuptools")
# disable index URL so bits and bobs aren't requested from PyPI
virtualenv.env['PIP_NO_INDEX'] = '1'
_check_test_command_install_requirements(virtualenv, tmpdir)


Expand Down

0 comments on commit ce8f29f

Please sign in to comment.