[Python-checkins] cpython: Issue #19734: Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
nick.coghlan
python-checkins at python.org
Sun Nov 24 05:59:35 CET 2013
http://hg.python.org/cpython/rev/9186fdae7e1f
changeset: 87487:9186fdae7e1f
user: Nick Coghlan <ncoghlan at gmail.com>
date: Sun Nov 24 14:58:31 2013 +1000
summary:
Issue #19734: Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
files:
Lib/test/test_venv.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -291,6 +291,10 @@
# warnings in current versions of Python. Ensure related
# environment settings don't cause venv to fail.
envvars["PYTHONWARNINGS"] = "e"
+ # pip doesn't ignore environment variables when running in
+ # isolated mode, and we don't have an active virtualenv here
+ # See http://bugs.python.org/issue19734 for details
+ del envvars["PIP_REQUIRE_VIRTUALENV"]
try:
self.run_with_capture(venv.create, self.env_dir, with_pip=True)
except subprocess.CalledProcessError as exc:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list