Files
gentoo/dev-python/pyicu/files/pyicu-2.4.2-testLocaleMatcher_pytest_old_icu.patch
T
Marek Szuba 00e35d3770 dev-python/pyicu: bump to 2.4.2
Now with distutils_enable_tests and better BDEPEND use!

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Marek Szuba <marecki@gentoo.org>
2019-12-19 13:14:40 +00:00

18 lines
489 B
Diff

--- a/test/test_LocaleMatcher.py
+++ b/test/test_LocaleMatcher.py
@@ -21,11 +21,13 @@
# DEALINGS IN THE SOFTWARE.
# ====================================================================
-import sys, os, six
+import sys, os, six, pytest
from unittest import TestCase, main
from icu import *
+@pytest.mark.skipif(ICU_VERSION < '65.0',
+ reason='ICU too old for LocaleMatcher support')
class TestLocaleMatcher(TestCase):
def testSetSupportedLocales(self):