From: Serhiy Storchaka Date: Sun, 3 Jul 2016 07:53:39 +0000 (+0300) Subject: Fixed a test for issue23908 with C locale. X-Git-Tag: v2.7.13rc1~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77c91066217621fd115cc28a108c5b37dcea9743;p=thirdparty%2FPython%2Fcpython.git Fixed a test for issue23908 with C locale. --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 7478234a9e04..e0c84f2d6c6b 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -580,6 +580,10 @@ class PosixTester(unittest.TestCase): @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)