summaryrefslogtreecommitdiff
path: root/Lib/venv
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-11-24 11:36:31 +1000
committerNick Coghlan <ncoghlan@gmail.com>2013-11-24 11:36:31 +1000
commit6fd12f2b33d38f64566786ff309ce84da8e9277f (patch)
treeb1d81cdf1bb90899319823cadfd5a91e759a3bdf /Lib/venv
parentfcafe433202300bfba33bfe16c7b48489fca59ac (diff)
downloadcpython-git-6fd12f2b33d38f64566786ff309ce84da8e9277f.tar.gz
Issue 19734: better diagnostics for test_venv failures
Diffstat (limited to 'Lib/venv')
-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 14158e97d5..74a8235fb3 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):
"""