https://github.com/python/cpython/commit/9ad55e85d78c5338b1ad170e614345652bd1b651
commit: 9ad55e85d78c5338b1ad170e614345652bd1b651
branch: main
author: Serhiy Storchaka <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2024-10-10T07:30:14+08:00
summary:
gh-124969: Skip the test for ALT_DIGITS also on iOS (#125177)
Skip the locale.ALT_DIGITS test on all Apple platforms, not just macOS.
files:
M Lib/test/test__locale.py
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py
index 02d2acc6d1c417..e403c2a822788d 100644
--- a/Lib/test/test__locale.py
+++ b/Lib/test/test__locale.py
@@ -209,8 +209,8 @@ def test_alt_digits_nl_langinfo(self):
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])
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]