diff options
| author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-19 09:46:14 (GMT) |
|---|---|---|
| committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-19 09:46:14 (GMT) |
| commit | 5bccb0e03db7fc3356b294a0d6c7a1687533ca38 (patch) | |
| tree | fef69f2cb9abafe3f5f2b36bb0c135c07c250289 /Lib/test/test_locale.py | |
| parent | 619555d77bba05c71d9ef0a1c29ec53a17ebe2ca (diff) | |
| download | cpython-5bccb0e03db7fc3356b294a0d6c7a1687533ca38.zip cpython-5bccb0e03db7fc3356b294a0d6c7a1687533ca38.tar.gz cpython-5bccb0e03db7fc3356b294a0d6c7a1687533ca38.tar.bz2 | |
Issue #28996: Skip two tests that fail on Android with the locale strcoll() and
strxfrm() functions.
Diffstat (limited to 'Lib/test/test_locale.py')
| -rw-r--r-- | Lib/test/test_locale.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index fae2c3d..99fab58 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) |
