mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
skip test_macostools when UCS4 is enabled
This commit is contained in:
parent
9b69ed9d67
commit
6f5a2b52ae
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue