Commit 77c91066 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed a test for issue23908 with C locale.

parent 3c9ce74c
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment