summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-16 12:36:10 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-16 12:36:10 (GMT)
commitf5ad91c392199fe8fabeed34d1dce6f8be3a0921 (patch)
tree0a8fbf8311bf2a5a15c269ba783ca3f359ad8365 /Lib/test/test_ntpath.py
parent755d5ea12aff91dfc4c4fe7302d911da33fffa82 (diff)
parent3d7e11520e5993b2adf9b809a8342084053988ae (diff)
downloadcpython-f5ad91c392199fe8fabeed34d1dce6f8be3a0921.zip
cpython-f5ad91c392199fe8fabeed34d1dce6f8be3a0921.tar.gz
cpython-f5ad91c392199fe8fabeed34d1dce6f8be3a0921.tar.bz2
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 0991d15..767a5b1 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -66,6 +66,9 @@ class TestNtpath(unittest.TestCase):
('', '\\\\conky\\\\mountpoint\\foo\\bar'))
tester('ntpath.splitdrive("//conky//mountpoint/foo/bar")',
('', '//conky//mountpoint/foo/bar'))
+ # Issue #19911: UNC part containing U+0130
+ self.assertEqual(ntpath.splitdrive('//conky/MOUNTPOİNT/foo/bar'),
+ ('//conky/MOUNTPOİNT', '/foo/bar'))
def test_split(self):
tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar'))