From: Benjamin Peterson Date: Thu, 19 Jun 2008 21:39:06 +0000 (+0000) Subject: skip test_macostools when UCS4 is enabled X-Git-Tag: v2.6b2~224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f5a2b52ae769ba1833aef8a52b6ab89921ee8c6;p=thirdparty%2FPython%2Fcpython.git skip test_macostools when UCS4 is enabled --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index bad8136f5bf8..29c165b12164 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -1133,6 +1133,9 @@ class _ExpectedSkips: "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 diff --git a/Lib/test/test_macostools.py b/Lib/test/test_macostools.py index eea3601cf304..da982d0bacd7 100644 --- a/Lib/test/test_macostools.py +++ b/Lib/test/test_macostools.py @@ -91,6 +91,9 @@ class TestMacostools(unittest.TestCase): 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)