[Python-checkins] r86890 - python/branches/py3k/Lib/test/test_os.py

brian.curtin python-checkins at python.org
Tue Nov 30 16:54:04 CET 2010


Author: brian.curtin
Date: Tue Nov 30 16:54:04 2010
New Revision: 86890

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


Modified:
   python/branches/py3k/Lib/test/test_os.py

Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py	(original)
+++ python/branches/py3k/Lib/test/test_os.py	Tue Nov 30 16:54:04 2010
@@ -887,13 +887,13 @@
         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)
 


More information about the Python-checkins mailing list