From d21246e1e22a954c04e01bc70b96d0ed7d7416b7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 22 May 2026 14:47:10 +0200 Subject: [PATCH] gh-149879: Fix test__locale on Cygwin On Cygwin with the LC_TIME locale "ja_JP", nl_langinfo(ALT_DIGITS) returns 101 items instead of 100. --- Lib/test/test__locale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index 11b2c9545a1b43d..29a29ca0c650974 100644 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@ -89,6 +89,9 @@ def accept(loc): 'ar_AE': (100, {0: '\u0660', 10: '\u0661\u0660', 99: '\u0669\u0669'}), 'bn_IN': (100, {0: '\u09e6', 10: '\u09e7\u09e6', 99: '\u09ef\u09ef'}), } +if sys.platform == 'cygwin': + count, samples = known_alt_digits['ja_JP'] + known_alt_digits['ja_JP'] = (101, samples) known_era = { 'C': (0, ''),