diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-13 10:02:05 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-13 10:02:05 (GMT) |
commit | 2bd8b22b6de76851a7e36dc4a92d20930335ff57 (patch) | |
tree | 648a3e23f9a7d001b061930d3d07ef772de5477f /Lib/test/test_ntpath.py | |
parent | 4068b01cb55a66efca605d64b6e27d9fd7cebd3e (diff) | |
download | cpython-2bd8b22b6de76851a7e36dc4a92d20930335ff57.zip cpython-2bd8b22b6de76851a7e36dc4a92d20930335ff57.tar.gz cpython-2bd8b22b6de76851a7e36dc4a92d20930335ff57.tar.bz2 |
Issue #21840: Fixed expanding unicode variables of form $var in
posixpath.expandvars(). Fixed all os.path implementations on
unicode-disabled builds.
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r-- | Lib/test/test_ntpath.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 0fbe6a1..55da7e1 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -69,8 +69,9 @@ class TestNtpath(unittest.TestCase): ('', '\\\\conky\\\\mountpoint\\foo\\bar')) tester('ntpath.splitunc("//conky//mountpoint/foo/bar")', ('', '//conky//mountpoint/foo/bar')) - self.assertEqual(ntpath.splitunc(u'//conky/MOUNTPO\u0130NT/foo/bar'), - (u'//conky/MOUNTPO\u0130NT', u'/foo/bar')) + if test_support.have_unicode: + self.assertEqual(ntpath.splitunc(u'//conky/MOUNTPO%cNT/foo/bar' % 0x0130), + (u'//conky/MOUNTPO%cNT' % 0x0130, u'/foo/bar')) def test_split(self): tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar')) |