Skip to content

Commit 38bcbb2

Browse files
miss-islingtonaisk
andauthored
[3.11] 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 5b547de commit 38bcbb2

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
@@ -253,7 +253,8 @@ def test_prefixes(self):
253253
('base_exec_prefix', sys.base_exec_prefix)):
254254
cmd[2] = 'import sys; print(sys.%s)' % prefix
255255
out, err = check_output(cmd)
256-
self.assertEqual(out.strip(), expected.encode(), prefix)
256+
self.assertEqual(pathlib.Path(out.strip().decode()),
257+
pathlib.Path(expected), prefix)
257258

258259
@requireVenvCreate
259260
def test_sysconfig(self):

0 commit comments

Comments
 (0)