diff options
| author | native-api <ivan_pozdeev@mail.ru> | 2018-12-06 09:43:37 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-06 09:43:37 (GMT) |
| commit | 29a4cbff92862207eb9df9a970b3636b8b06ff5d (patch) | |
| tree | b34cbacca9cd8073a5c5418eadef8fda5a831614 /Lib/test/test_posixpath.py | |
| parent | 46aa472a8f2dd9e47ba6fbe3cc416ec7c62f11f4 (diff) | |
| download | cpython-29a4cbff92862207eb9df9a970b3636b8b06ff5d.zip cpython-29a4cbff92862207eb9df9a970b3636b8b06ff5d.tar.gz cpython-29a4cbff92862207eb9df9a970b3636b8b06ff5d.tar.bz2 | |
[2.7] bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. (GH-7278) (GH-7279)
Diffstat (limited to 'Lib/test/test_posixpath.py')
| -rw-r--r-- | Lib/test/test_posixpath.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 0663a21..18ea2e4 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -496,12 +496,10 @@ class PosixPathTest(unittest.TestCase): finally: os.getcwd = real_getcwd - @test_support.requires_unicode + @unittest.skipUnless(test_support.FS_NONASCII, 'need test_support.FS_NONASCII') def test_expandvars_nonascii_word(self): encoding = sys.getfilesystemencoding() - # Non-ASCII word characters - letters = test_support.u(r'\xe6\u0130\u0141\u03c6\u041a\u05d0\u062a\u0e01') - uwnonascii = letters.encode(encoding, 'ignore').decode(encoding)[:3] + uwnonascii = test_support.FS_NONASCII swnonascii = uwnonascii.encode(encoding) if not swnonascii: self.skipTest('Needs non-ASCII word characters') |
