summaryrefslogtreecommitdiff
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-06-10 17:36:02 +0100
committerGitHub <noreply@github.com>2022-06-10 17:36:02 +0100
commit9041b00283737f77acbb392871886913d82144f8 (patch)
treec507ac7b77170e6b5dda509be8d6a8b60bdfb738 /Lib/test/test_ntpath.py
parenta2695be91cbe8262828bb44c20d11f16f9a040f6 (diff)
downloadcpython-git-9041b00283737f77acbb392871886913d82144f8.tar.gz
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>
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 661c59d617..8258b7e44d 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -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)