diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-04-18 08:23:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-04-18 08:23:42 (GMT) |
commit | 1efde679ce196730cf60fd61b9ac3bcbabfba35a (patch) | |
tree | 3da4c3245f74e375fef26c68c9b0a6d3b1383ccf /Lib/test/test_genericpath.py | |
parent | f3bc258b947de621b5487f8be8f07f936fc7fdf9 (diff) | |
download | cpython-1efde679ce196730cf60fd61b9ac3bcbabfba35a.zip cpython-1efde679ce196730cf60fd61b9ac3bcbabfba35a.tar.gz cpython-1efde679ce196730cf60fd61b9ac3bcbabfba35a.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).
Diffstat (limited to 'Lib/test/test_genericpath.py')
-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 4ffc1cd..5d68e98 100644 --- a/Lib/test/test_genericpath.py +++ b/Lib/test/test_genericpath.py @@ -6,6 +6,7 @@ import unittest from test import support import os import genericpath +import sys def safe_rmdir(dirname): @@ -284,6 +285,9 @@ class CommonTest(GenericTest): 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() |