bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for case-folding (GH-93674)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
This commit is contained in:
Steve Dower 2022-06-10 17:36:02 +01:00 committed by GitHub
parent a2695be91c
commit 9041b00283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 156 additions and 8 deletions

View file

@ -807,6 +807,8 @@ class PathLikeTests(NtpathTestCase):
def test_path_normcase(self):
self._check_function(self.path.normcase)
if sys.platform == 'win32':
self.assertEqual(ntpath.normcase('\u03a9\u2126'), 'ωΩ')
def test_path_isabs(self):
self._check_function(self.path.isabs)