summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-20 11:58:06 (GMT)
committerGitHub <noreply@github.com>2020-10-20 11:58:06 (GMT)
commit4cde523aa467c92a713674c793ab87e7c56486c4 (patch)
treebe9cd1a92551d5940442ae759d948cacfad9708f /Lib
parentd1eb75585ef4c108732ec815cdc0adef087b1c3e (diff)
downloadcpython-4cde523aa467c92a713674c793ab87e7c56486c4.zip
cpython-4cde523aa467c92a713674c793ab87e7c56486c4.tar.gz
cpython-4cde523aa467c92a713674c793ab87e7c56486c4.tar.bz2
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 (cherry picked from commit f2312037e3a974d26ed3e23884f94c6af111a27a) Co-authored-by: TIGirardi <tiagoigirardi@gmail.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test__locale.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py
index ab4e247..560f077 100644
--- a/Lib/test/test__locale.py
+++ b/Lib/test/test__locale.py
@@ -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):