summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-11-24 04:58:31 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-11-24 04:58:31 (GMT)
commit091167c1ca513d74c7a146d6a527e7b8b07ae7e8 (patch)
tree4fcfae87844ec50714dfc918627c397e76516f52 /Lib
parent5e411b7035e411884b3598e11c7260f29bd8a55d (diff)
downloadcpython-091167c1ca513d74c7a146d6a527e7b8b07ae7e8.zip
cpython-091167c1ca513d74c7a146d6a527e7b8b07ae7e8.tar.gz
cpython-091167c1ca513d74c7a146d6a527e7b8b07ae7e8.tar.bz2
Issue #19734: Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_venv.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index bc210aa..ea49f6e 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -291,6 +291,10 @@ class EnsurePipTest(BaseTest):
# 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: