mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
[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:
parent
468e8dad7e
commit
2da829ba97
1 changed files with 5 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue