Skip to content

Commit

Permalink
GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH…
Browse files Browse the repository at this point in the history
…-127327)

Fix test_era_nl_langinfo with Japanese ERAs on Solaris
  • Loading branch information
kulikjak authored Dec 5, 2024
1 parent 208b0fb commit d958d9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/test/test__locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ def accept(loc):
# 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):
Expand Down

0 comments on commit d958d9f

Please sign in to comment.