changeset: 102245:b0e8a2e7c361 branch: 2.7 user: Serhiy Storchaka date: Sun Jul 03 10:53:39 2016 +0300 files: Lib/test/test_posix.py description: Fixed a test for issue23908 with C locale. diff -r 30099abdb3a4 -r b0e8a2e7c361 Lib/test/test_posix.py --- a/Lib/test/test_posix.py Fri Jul 01 23:34:44 2016 +0300 +++ b/Lib/test/test_posix.py Sun Jul 03 10:53:39 2016 +0300 @@ -580,6 +580,10 @@ @test_support.requires_unicode def test_path_with_null_unicode(self): fn = test_support.TESTFN_UNICODE + try: + fn.encode(test_support.TESTFN_ENCODING) + except (UnicodeError, TypeError): + self.skipTest("Requires unicode filenames support") fn_with_NUL = fn + u'\0' self.addCleanup(test_support.unlink, fn) test_support.unlink(fn)