diff options
| author | Victor Stinner <vstinner@python.org> | 2021-10-07 21:22:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-07 21:22:28 +0200 |
| commit | 768aaf6c433e6a13b82c7bdebd0062c7472c1fc7 (patch) | |
| tree | 33e46032c27cef3b374a10d40e0b4c6a90b30a19 /Lib/test/test_sys.py | |
| parent | ff8859d965815e8b5af346bd90299cfa5568c855 (diff) | |
| download | cpython-git-768aaf6c433e6a13b82c7bdebd0062c7472c1fc7.tar.gz | |
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.
Diffstat (limited to 'Lib/test/test_sys.py')
| -rw-r--r-- | Lib/test/test_sys.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index cf708407c2..6720cd622d 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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 |
