Issue #19734: Also run pip version check in isolated mode

This commit is contained in:
Nick Coghlan 2013-11-24 16:49:20 +10:00
parent 091167c1ca
commit 1d1d834328
1 changed files with 2 additions and 2 deletions

View File

@ -304,9 +304,9 @@ class EnsurePipTest(BaseTest):
msg = "{}\n\n**Subprocess Output**\n{}".format(exc, details) msg = "{}\n\n**Subprocess Output**\n{}".format(exc, details)
self.fail(msg) self.fail(msg)
envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe)
cmd = [envpy, '-m', 'pip', '--version'] cmd = [envpy, '-Im', 'pip', '--version']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
out, err = p.communicate() out, err = p.communicate()
# We force everything to text, so unittest gives the detailed diff # We force everything to text, so unittest gives the detailed diff
# if we get unexpected results # if we get unexpected results