diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index af501cf0c76..765cbc1c103 100644 --- a/Lib/test/test_genericpath.py +++ b/Lib/test/test_genericpath.py @@ -6,6 +6,7 @@ import unittest from test import test_support import os import genericpath +import sys def safe_rmdir(dirname): @@ -236,6 +237,9 @@ class CommonTest(GenericTest): for path in (u'', u'fuu', u'f\xf9\xf9', u'/fuu', u'U:\\'): self.assertIsInstance(abspath(path), unicode) + @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 test_support.temp_cwd('\xe7w\xf0'): self.test_abspath()