Skip to content

Commit 52f5b7f

Browse files
authored
gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
1 parent e3b6f28 commit 52f5b7f

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
@@ -273,7 +273,8 @@ def test_prefixes(self):
273273
('base_exec_prefix', sys.base_exec_prefix)):
274274
cmd[2] = 'import sys; print(sys.%s)' % prefix
275275
out, err = check_output(cmd)
276-
self.assertEqual(out.strip(), expected.encode(), prefix)
276+
self.assertEqual(pathlib.Path(out.strip().decode()),
277+
pathlib.Path(expected), prefix)
277278

278279
@requireVenvCreate
279280
def test_sysconfig(self):

0 commit comments

Comments
 (0)