bpo-38324: Fix test__locale.py Windows failures (GH-20529)

Use wide-char _W_* fields of lconv structure on Windows
Remove "ps_AF" from test__locale.known_numerics on Windows
This commit is contained in:
TIGirardi 2020-10-20 08:39:52 -03:00 committed by GitHub
parent d5d0521270
commit f2312037e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 5 deletions

View file

@ -72,6 +72,10 @@ known_numerics = {
'ps_AF': ('\u066b', '\u066c'),
}
if sys.platform == 'win32':
# ps_AF doesn't work on Windows: see bpo-38324 (msg361830)
del known_numerics['ps_AF']
class _LocaleTests(unittest.TestCase):
def setUp(self):