Kaydet (Commit) 1d1d8343 authored tarafından Nick Coghlan's avatar Nick Coghlan

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

üst 091167c1
...@@ -304,9 +304,9 @@ class EnsurePipTest(BaseTest): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment