[3.14] gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625) (GH-139644)

(cherry picked from commit 6f3dae0dc5)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-10-07 20:02:42 +02:00 committed by GitHub
parent 7a1a79d731
commit 98d33bf19c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -557,7 +557,7 @@ class StrptimeTests(unittest.TestCase):
def test_date_locale2(self):
# Test %x directive
loc = locale.getlocale(locale.LC_TIME)[0]
if sys.platform.startswith('sunos'):
if sys.platform.startswith(('sunos', 'aix')):
if loc in ('en_US', 'de_DE', 'ar_AE'):
self.skipTest(f'locale {loc!r} may not work on this platform')
self.roundtrip('%x', slice(0, 3), (1900, 1, 1, 0, 0, 0, 0, 1, 0))