[3.13] GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327) (GH-127645)

(cherry picked from commit d958d9f4a1)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-12-05 20:08:12 +01:00 committed by GitHub
parent 468e8dad7e
commit 2da829ba97
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):