Issue 19734: better diagnostics for test_venv failures

This commit is contained in:
Nick Coghlan 2013-11-24 11:36:31 +10:00
parent fcafe43320
commit 6fd12f2b33
2 changed files with 18 additions and 6 deletions

View file

@ -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):
"""