]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124969: Skip the test for ALT_DIGITS also on iOS (#125177)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 Oct 2024 23:30:14 +0000 (02:30 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 23:30:14 +0000 (07:30 +0800)
Skip the locale.ALT_DIGITS test on all Apple platforms, not just macOS.

Lib/test/test__locale.py

index 02d2acc6d1c417d2b6f5c575097c882414f96a73..e403c2a822788dc759aa2cccc7875277708c2cde 100644 (file)
@@ -209,8 +209,8 @@ class _LocaleTests(unittest.TestCase):
                 with self.subTest(locale=loc):
                     alt_digits = nl_langinfo(locale.ALT_DIGITS)
                     self.assertIsInstance(alt_digits, tuple)
-                    if count and not alt_digits and sys.platform == 'darwin':
-                        self.skipTest(f'ALT_DIGITS is not set for locale {loc!r} on macOS')
+                    if count and not alt_digits and support.is_apple:
+                        self.skipTest(f'ALT_DIGITS is not set for locale {loc!r} on Apple platforms')
                     self.assertEqual(len(alt_digits), count)
                     for i in samples:
                         self.assertEqual(alt_digits[i], samples[i])