+++ /dev/null
---- a/test/test_Script.py
-+++ b/test/test_Script.py
-@@ -40,12 +40,16 @@ class TestScript(TestCase):
- if unicode_32bit:
- self.assertEqual(['Latn', 'Deva', 'Hani', 'Hani'], names)
- else:
-- self.assertEqual(['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz'], names)
-+ self.assertTrue(
-+ (['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz'] == names) or
-+ (['Latn', 'Deva', 'Hani', 'Zyyy', 'Zyyy'] == names))
-
- pairs = UnicodeString(pairs)
- # iterating UChar, not codepoints
- names = [Script.getScript(c).getShortName() for c in pairs]
-- self.assertEqual(['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz'], names)
-+ self.assertTrue(
-+ (['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz'] == names) or
-+ (['Latn', 'Deva', 'Hani', 'Zyyy', 'Zyyy'] == names))
-
- # iterating codepoints not UChar
- names = [Script.getScript(cp).getShortName()
-@@ -53,7 +57,9 @@ class TestScript(TestCase):
- if unicode_32bit:
- self.assertEqual(['Latn', 'Deva', 'Hani', 'Hani'], names)
- else:
-- self.assertEqual(['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz'], names)
-+ self.assertTrue(
-+ (['Latn', 'Deva', 'Hani', 'Zzzz', 'Zzzz'] == names) or
-+ (['Latn', 'Deva', 'Hani', 'Zyyy', 'Zyyy'] == names))
-
- # iterating codepoints, not UChar
- names = [Script.getScript(pairs.char32At(i)).getShortName()
-
+++ /dev/null
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7} )
-
-inherit distutils-r1
-
-MY_PN="PyICU"
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Python bindings for dev-libs/icu"
-HOMEPAGE="https://github.com/ovalhub/pyicu"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-
-RESTRICT="!test? ( test )"
-
-RDEPEND="${PYTHON_DEPS}
- dev-libs/icu:="
-DEPEND="${RDEPEND}
- test? ( dev-python/pytest
- dev-python/six )"
-
-S="${WORKDIR}/${MY_P}"
-
-DOCS=(CHANGES CREDITS README.md)
-
-# This will no longer be necessary in the next release
-PATCHES=( "${FILESDIR}"/${PN}-2.3.1-testSurrogatePairs_workaround.patch )
-
-python_test() {
- esetup.py test
-}
+++ /dev/null
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7} )
-
-inherit distutils-r1 flag-o-matic
-
-MY_PN="PyICU"
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Python bindings for dev-libs/icu"
-HOMEPAGE="https://github.com/ovalhub/pyicu"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="test"
-
-RESTRICT="!test? ( test )"
-
-RDEPEND="${PYTHON_DEPS}
- dev-libs/icu:="
-DEPEND="${RDEPEND}
- test? ( dev-python/pytest
- dev-python/six )"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-S="${WORKDIR}/${MY_P}"
-
-DOCS=(CHANGES CREDITS README.md)
-
-python_test() {
- if [[ ${EPYTHON} == python2* ]]; then
- # See Bug #644226
- ewarn "Skipping tests for ${EPYTHON} because they are known to fail"
- else
- esetup.py test
- fi
-}