mirror of https://github.com/python/cpython
Issue #19734: Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
This commit is contained in:
parent
5e411b7035
commit
091167c1ca
|
@ -291,6 +291,10 @@ class EnsurePipTest(BaseTest):
|
||||||
# warnings in current versions of Python. Ensure related
|
# warnings in current versions of Python. Ensure related
|
||||||
# environment settings don't cause venv to fail.
|
# environment settings don't cause venv to fail.
|
||||||
envvars["PYTHONWARNINGS"] = "e"
|
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:
|
try:
|
||||||
self.run_with_capture(venv.create, self.env_dir, with_pip=True)
|
self.run_with_capture(venv.create, self.env_dir, with_pip=True)
|
||||||
except subprocess.CalledProcessError as exc:
|
except subprocess.CalledProcessError as exc:
|
||||||
|
|
Loading…
Reference in New Issue