https://github.com/python/cpython/commit/52f5b7f9e05fc4a25e385c046e0b091641674556
commit: 52f5b7f9e05fc4a25e385c046e0b091641674556
branch: main
author: AN Long <[email protected]>
committer: zooba <[email protected]>
date: 2024-04-02T14:10:24+01:00
summary:
gh-115538: Use pathlib to compare prefixes in test_venv (GH-117076)
files:
M Lib/test/test_venv.py
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index 63cc4b743862bc..f410ce7198dc86 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -273,7 +273,8 @@ def test_prefixes(self):
('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):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]