[Python-checkins] r81135 - python/trunk/Lib/test/test_genericpath.py
victor.stinner
python-checkins at python.org
Thu May 13 18:18:14 CEST 2010
Author: victor.stinner
Date: Thu May 13 18:18:14 2010
New Revision: 81135
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).
Merge r80163 from py3k branch.
Modified:
python/trunk/Lib/test/test_genericpath.py
Modified: python/trunk/Lib/test/test_genericpath.py
==============================================================================
--- python/trunk/Lib/test/test_genericpath.py (original)
+++ python/trunk/Lib/test/test_genericpath.py Thu May 13 18:18:14 2010
@@ -6,6 +6,7 @@
from test import test_support
import os
import genericpath
+import sys
def safe_rmdir(dirname):
@@ -236,6 +237,9 @@
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()
More information about the Python-checkins
mailing list