Issue #19734: Also run pip version check in isolated mode
This commit is contained in:
parent
091167c1ca
commit
1d1d834328
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue