diff options
| author | Barney Gale <barney.gale@gmail.com> | 2023-05-26 18:04:02 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-26 18:04:02 (GMT) |
| commit | ad0be361c9922a918c7c3eaf83e1d8f2b019279c (patch) | |
| tree | 508b0034838246178e396dd1399aed954802d3ca /Lib/test/test_pathlib.py | |
| parent | 060277d96bf4ba86df8e4d65831a8cbdfeb51fc5 (diff) | |
| download | cpython-ad0be361c9922a918c7c3eaf83e1d8f2b019279c.zip cpython-ad0be361c9922a918c7c3eaf83e1d8f2b019279c.tar.gz cpython-ad0be361c9922a918c7c3eaf83e1d8f2b019279c.tar.bz2 | |
GH-104947: Make pathlib.PureWindowsPath comparisons consistent across platforms (GH-104948)
Use `str.lower()` rather than `ntpath.normcase()` to normalize case of
Windows paths. This restores behaviour from Python 3.11.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Lib/test/test_pathlib.py')
| -rw-r--r-- | Lib/test/test_pathlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 8b68cdc..ef202b7 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -904,6 +904,7 @@ class PureWindowsPathTest(_BasePurePathTest, unittest.TestCase): self.assertEqual(P('a/B'), P('A/b')) self.assertEqual(P('C:a/B'), P('c:A/b')) self.assertEqual(P('//Some/SHARE/a/B'), P('//somE/share/A/b')) + self.assertEqual(P('\u0130'), P('i\u0307')) def test_as_uri(self): P = self.cls |
