From 6683ebae061d174b61db78bd2f40ba6c153eb8eb Mon Sep 17 00:00:00 2001 From: Xavier de Gaye Date: Mon, 19 Dec 2016 10:46:14 +0100 Subject: Issue #28996: Skip two tests that fail on Android with the locale strcoll() and strxfrm() functions. --- Lib/test/test_locale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_locale.py') diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index fae2c3dabb..99fab58cb9 100644 --- a/Lib/test/test_locale.py +++ b/Lib/test/test_locale.py @@ -1,4 +1,4 @@ -from test.support import verbose +from test.support import verbose, is_android import unittest import locale import sys @@ -353,7 +353,7 @@ class TestEnUSCollation(BaseLocalizedTest, TestCollation): enc = codecs.lookup(locale.getpreferredencoding(False) or 'ascii').name if enc not in ('utf-8', 'iso8859-1', 'cp1252'): raise unittest.SkipTest('encoding not suitable') - if enc != 'iso8859-1' and (sys.platform == 'darwin' or + if enc != 'iso8859-1' and (sys.platform == 'darwin' or is_android or sys.platform.startswith('freebsd')): raise unittest.SkipTest('wcscoll/wcsxfrm have known bugs') BaseLocalizedTest.setUp(self) -- cgit v1.2.1