mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-45403: Fix test_sys.test_stdlib_dir() (GH-28785)
Fix test_sys.test_stdlib_dir() when Python is built outside the source tree: compare normalized paths.
This commit is contained in:
parent
ff8859d965
commit
768aaf6c43
2 changed files with 4 additions and 2 deletions
|
@ -1001,8 +1001,8 @@ class SysModuleTest(unittest.TestCase):
|
|||
if marker and not os.path.exists(marker):
|
||||
marker = None
|
||||
expected = os.path.dirname(marker) if marker else None
|
||||
actual = sys._stdlib_dir
|
||||
self.assertEqual(actual, expected)
|
||||
self.assertEqual(os.path.normpath(sys._stdlib_dir),
|
||||
os.path.normpath(expected))
|
||||
|
||||
|
||||
@test.support.cpython_only
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fix test_sys.test_stdlib_dir() when Python is built outside the source tree:
|
||||
compare normalized paths. Patch by Victor Stinner.
|
Loading…
Add table
Add a link
Reference in a new issue