skip test_macostools when UCS4 is enabled

This commit is contained in:
Benjamin Peterson 2008-06-19 21:39:06 +00:00
parent 9b69ed9d67
commit 6f5a2b52ae
2 changed files with 6 additions and 0 deletions

View file

@ -1133,6 +1133,9 @@ class _ExpectedSkips:
"test_applesingle"] "test_applesingle"]
for skip in MAC_ONLY: for skip in MAC_ONLY:
self.expected.add(skip) self.expected.add(skip)
elif len(u'\0'.encode('unicode-internal')) == 4:
self.expected.add("test_macostools")
if sys.platform != "win32": if sys.platform != "win32":
# test_sqlite is only reliable on Windows where the library # test_sqlite is only reliable on Windows where the library

View file

@ -91,6 +91,9 @@ class TestMacostools(unittest.TestCase):
def test_main(): 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) test_support.run_unittest(TestMacostools)