[Python-checkins] r80163 - python/branches/py3k/Lib/test/test_genericpath.py

victor.stinner python-checkins at python.org
Sun Apr 18 10:23:42 CEST 2010


Author: victor.stinner
Date: Sun Apr 18 10:23:42 2010
New Revision: 80163

Log:
Issue #8422, test_genericpath: skip the creation of a directory with an invalid
UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8
string).


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

Modified: python/branches/py3k/Lib/test/test_genericpath.py
==============================================================================
--- python/branches/py3k/Lib/test/test_genericpath.py	(original)
+++ python/branches/py3k/Lib/test/test_genericpath.py	Sun Apr 18 10:23:42 2010
@@ -6,6 +6,7 @@
 from test import support
 import os
 import genericpath
+import sys
 
 
 def safe_rmdir(dirname):
@@ -284,6 +285,9 @@
                 for path in ('', 'fuu', 'f\xf9\xf9', '/fuu', 'U:\\'):
                     self.assertIsInstance(abspath(path), str)
 
+    @unittest.skipIf(sys.platform == 'darwin',
+        "Mac OS X deny the creation of a directory with an invalid utf8 name")
+    def test_nonascii_abspath(self):
         # Test non-ASCII, non-UTF8 bytes in the path.
         with support.temp_cwd(b'\xe7w\xf0'):
             self.test_abspath()


More information about the Python-checkins mailing list