diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-13 16:18:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-13 16:18:14 (GMT) |
commit | 20c3258bf24da6cffd004e793b3a88b694ffaebd (patch) | |
tree | 5e89cea3739e68bd066029216e5f532a8a4200f1 /Lib | |
parent | 81a0450cb55ac0887c8d59b5750f66aa00bd8be1 (diff) | |
download | cpython-20c3258bf24da6cffd004e793b3a88b694ffaebd.zip cpython-20c3258bf24da6cffd004e793b3a88b694ffaebd.tar.gz cpython-20c3258bf24da6cffd004e793b3a88b694ffaebd.tar.bz2 |
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).
Merge r80163 from py3k branch.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_genericpath.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index af501cf..765cbc1 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() |