diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-06-19 21:39:06 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-06-19 21:39:06 (GMT) |
commit | 6f5a2b52ae769ba1833aef8a52b6ab89921ee8c6 (patch) | |
tree | a982a1c281804cea3011ce9c2ddd5e356037c7d3 /Lib | |
parent | 9b69ed9d6733aacca64d043f555af263f98b7df6 (diff) | |
download | cpython-6f5a2b52ae769ba1833aef8a52b6ab89921ee8c6.zip cpython-6f5a2b52ae769ba1833aef8a52b6ab89921ee8c6.tar.gz cpython-6f5a2b52ae769ba1833aef8a52b6ab89921ee8c6.tar.bz2 |
skip test_macostools when UCS4 is enabled
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/regrtest.py | 3 | ||||
-rw-r--r-- | Lib/test/test_macostools.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index bad8136..29c165b 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 eea3601..da982d0 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) |