Skip to content

Commit 675324d

Browse files
[3.12] GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327) (GH-127646)
(cherry picked from commit d958d9f) Co-authored-by: Jakub Kulík <[email protected]>
1 parent a65475f commit 675324d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test__locale.py

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ def accept(loc):
102102
# ps_AF doesn't work on Windows: see bpo-38324 (msg361830)
103103
del known_numerics['ps_AF']
104104

105+
if sys.platform == 'sunos5':
106+
# On Solaris, Japanese ERAs start with the year 1927,
107+
# and thus there's less of them.
108+
known_era['ja_JP'] = (5, '+:1:2019/05/01:2019/12/31:令和:%EC元年')
109+
105110
class _LocaleTests(unittest.TestCase):
106111

107112
def setUp(self):

0 commit comments

Comments
 (0)