Skip to content

Commit 75b3139

Browse files
miss-islingtonaisk
andauthored
[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 52f5b7f) Co-authored-by: AN Long <[email protected]>
1 parent 52f1fb6 commit 75b3139

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_venv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def test_prefixes(self):
252252
('base_exec_prefix', sys.base_exec_prefix)):
253253
cmd[2] = 'import sys; print(sys.%s)' % prefix
254254
out, err = check_output(cmd)
255-
self.assertEqual(out.strip(), expected.encode(), prefix)
255+
self.assertEqual(pathlib.Path(out.strip().decode()),
256+
pathlib.Path(expected), prefix)
256257

257258
@requireVenvCreate
258259
def test_sysconfig(self):

0 commit comments

Comments
 (0)