mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
This commit is contained in:
parent
e3b6f287fc
commit
52f5b7f9e0
1 changed files with 2 additions and 1 deletions
|
@ -273,7 +273,8 @@ class BasicTest(BaseTest):
|
|||
('base_exec_prefix', sys.base_exec_prefix)):
|
||||
cmd[2] = 'import sys; print(sys.%s)' % prefix
|
||||
out, err = check_output(cmd)
|
||||
self.assertEqual(out.strip(), expected.encode(), prefix)
|
||||
self.assertEqual(pathlib.Path(out.strip().decode()),
|
||||
pathlib.Path(expected), prefix)
|
||||
|
||||
@requireVenvCreate
|
||||
def test_sysconfig(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue