]> granicus.if.org Git - python/commitdiff
Issue #19734: Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 24 Nov 2013 04:58:31 +0000 (14:58 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 24 Nov 2013 04:58:31 +0000 (14:58 +1000)
Lib/test/test_venv.py

index bc210aa5fe3d7eaa97bddad6cec3a3b13a935d7d..ea49f6ec11cee5215032e58f05088b6a333556a1 100644 (file)
@@ -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: