summaryrefslogtreecommitdiffstats
path: root/Lib/venv/__init__.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-11-24 01:36:31 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-11-24 01:36:31 (GMT)
commit6fd12f2b33d38f64566786ff309ce84da8e9277f (patch)
treeb1d81cdf1bb90899319823cadfd5a91e759a3bdf /Lib/venv/__init__.py
parentfcafe433202300bfba33bfe16c7b48489fca59ac (diff)
downloadcpython-6fd12f2b33d38f64566786ff309ce84da8e9277f.zip
cpython-6fd12f2b33d38f64566786ff309ce84da8e9277f.tar.gz
cpython-6fd12f2b33d38f64566786ff309ce84da8e9277f.tar.bz2
Issue 19734: better diagnostics for test_venv failures
Diffstat (limited to 'Lib/venv/__init__.py')
-rw-r--r--Lib/venv/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index 14158e9..74a8235 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -237,9 +237,9 @@ class EnvBuilder:
# We run ensurepip in isolated mode to avoid side effects from
# environment vars, the current directory and anything else
# intended for the global Python environment
- cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade',
+ cmd = [context.env_exe, '-m', 'ensurepip', '--upgrade',
'--default-pip']
- subprocess.check_output(cmd)
+ subprocess.check_output(cmd, stderr=subprocess.STDOUT)
def setup_scripts(self, context):
"""