Actually fix what I attempted to fix in r86888...

This commit is contained in:
Brian Curtin 2010-11-30 15:54:04 +00:00
parent 9fc443cf59
commit f498b754ed
1 changed files with 3 additions and 3 deletions

View File

@ -887,13 +887,13 @@ class LinkTests(unittest.TestCase):
self._test_link(bytes(self.file1, sys.getfilesystemencoding()),
bytes(self.file2, sys.getfilesystemencoding()))
def test_mbcs_name(self):
def test_unicode_name(self):
try:
chars = os.fsencode("\u65e5\u672c")
os.fsencode("\xf1")
except UnicodeError:
raise unittest.SkipTest("Unable to encode for this platform.")
self.file1 += chars
self.file1 += "\xf1"
self.file2 = self.file1 + "2"
self._test_link(self.file1, self.file2)