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_genericpath.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_genericpath.py')
| -rw-r--r-- | Lib/test/test_genericpath.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index 94380b1..741b755 100644 --- a/Lib/test/test_genericpath.py +++ b/Lib/test/test_genericpath.py @@ -243,11 +243,13 @@ class CommonTest(GenericTest): def test_realpath(self): self.assertIn("foo", self.pathmodule.realpath("foo")) + @test_support.requires_unicode def test_normpath_issue5827(self): # Make sure normpath preserves unicode for path in (u'', u'.', u'/', u'\\', u'///foo/.//bar//'): self.assertIsInstance(self.pathmodule.normpath(path), unicode) + @test_support.requires_unicode def test_abspath_issue3426(self): # Check that abspath returns unicode when the arg is unicode # with both ASCII and non-ASCII cwds. |
