[Python-checkins] r64413 - in python/trunk/Lib/test: regrtest.py test_macostools.py

benjamin.peterson python-checkins at python.org
Thu Jun 19 23:39:06 CEST 2008


Author: benjamin.peterson
Date: Thu Jun 19 23:39:06 2008
New Revision: 64413
Log:
skip test_macostools when UCS4 is enabled
Modified:
 python/trunk/Lib/test/regrtest.py
 python/trunk/Lib/test/test_macostools.py
Modified: python/trunk/Lib/test/regrtest.py
==============================================================================
--- python/trunk/Lib/test/regrtest.py	(original)
+++ python/trunk/Lib/test/regrtest.py	Thu Jun 19 23:39:06 2008
@@ -1133,6 +1133,9 @@
 "test_applesingle"]
 for skip in MAC_ONLY:
 self.expected.add(skip)
+ elif len(u'0円'.encode('unicode-internal')) == 4:
+ self.expected.add("test_macostools")
+
 
 if sys.platform != "win32":
 # test_sqlite is only reliable on Windows where the library
Modified: python/trunk/Lib/test/test_macostools.py
==============================================================================
--- python/trunk/Lib/test/test_macostools.py	(original)
+++ python/trunk/Lib/test/test_macostools.py	Thu Jun 19 23:39:06 2008
@@ -91,6 +91,9 @@
 
 
 def test_main():
+ # Skip on wide unicode
+ if len(u'0円'.encode('unicode-internal')) == 4:
+ raise test_support.TestSkipped("test_macostools is broken in USC4")
 test_support.run_unittest(TestMacostools)
 
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /