GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327)

Fix test_era_nl_langinfo with Japanese ERAs on Solaris
This commit is contained in:
Jakub Kulík 2024-12-05 19:43:19 +01:00 committed by GitHub
parent 208b0fb645
commit d958d9f4a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):