From 155840319c42653f1f34b3cfb58201b7f17b6517 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 28 Oct 2025 09:10:15 +0100 Subject: [PATCH] Skip test on macos --- tests/test_cwcwidth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_cwcwidth.py b/tests/test_cwcwidth.py index 34b6fcd..232d258 100644 --- a/tests/test_cwcwidth.py +++ b/tests/test_cwcwidth.py @@ -19,10 +19,12 @@ # SOFTWARE. import locale +import sys import unittest from cwcwidth import wcwidth, wcswidth supports_utf8 = "UTF-8" in locale.getlocale() +is_mac = sys.platform == "darwin" class Tests(unittest.TestCase): @@ -87,6 +89,7 @@ class Tests(unittest.TestCase): self._exec_test("\u0410\u0488", (1, 0)) @unittest.skipUnless(supports_utf8, "locale does not support UTF-8") + @unittest.skipIf(is_mac, "native wcwidth on macos reports incorrect size") def test_combining_spacing(self): """Balinese kapal (ship) is ᬓᬨᬮ᭄ of length 4.""" self._exec_test("\u1b13\u1b28\u1b2e\u1b44", (1, 1, 1, 1))