https://github.com/python/cpython/commit/675324de9a43ca0508653fbc21e92da87995029d commit: 675324de9a43ca0508653fbc21e92da87995029d branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2024-12-05T19:01:25Z summary:
[3.12] GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327) (GH-127646) (cherry picked from commit d958d9f4a1b71c6d30960bf6c53c41046ea94590) Co-authored-by: Jakub Kulík <[email protected]> files: M Lib/test/test__locale.py diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index 89c203250557f0..606dd297452bc4 100644 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@ -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): _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
