mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
[3.12] gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
(cherry picked from commit 52f5b7f9e0
)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
This commit is contained in:
parent
52f1fb6f7d
commit
75b3139b53
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,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