From: Jakub Kulík Date: Thu, 5 Dec 2024 18:43:19 +0000 (+0100) Subject: GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327) X-Git-Tag: v3.14.0a3~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d958d9f4a1b71c6d30960bf6c53c41046ea94590;p=thirdparty%2FPython%2Fcpython.git GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327) Fix test_era_nl_langinfo with Japanese ERAs on Solaris --- diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index 2c751033ebb3..cef84fd9580c 100644 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@ -102,6 +102,11 @@ if sys.platform == 'win32': # ps_AF doesn't work on Windows: see bpo-38324 (msg361830) del known_numerics['ps_AF'] +if sys.platform == 'sunos5': + # On Solaris, Japanese ERAs start with the year 1927, + # and thus there's less of them. + known_era['ja_JP'] = (5, '+:1:2019/05/01:2019/12/31:令和:%EC元年') + class _LocaleTests(unittest.TestCase): def setUp(self):