]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625)
authorFurkan Onder <furkanonder@protonmail.com>
Mon, 6 Oct 2025 09:38:01 +0000 (09:38 +0000)
committerGitHub <noreply@github.com>
Mon, 6 Oct 2025 09:38:01 +0000 (11:38 +0200)
Lib/test/test_strptime.py

index d12816c90840ad07df9f97a829177e36fda5b96f..40e114aada67eb8f3edb117f4c3cc0f51e3451ff 100644 (file)
@@ -570,7 +570,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))