diff options
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 5a37522..d58097d 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -888,7 +888,12 @@ class LinkTests(unittest.TestCase): bytes(self.file2, sys.getfilesystemencoding())) def test_mbcs_name(self): - self.file1 += "\u65e5\u672c" + try: + chars = os.fsencode("\u65e5\u672c") + except UnicodeError: + raise unittest.SkipTest("Unable to encode for this platform.") + + self.file1 += chars self.file2 = self.file1 + "2" self._test_link(self.file1, self.file2) |