dev-python/pyicu-2.0.2: skip tests on python2

test_Script/testSurrogatePairs fails on UCS-4 builds of python2_7,
which is what Gentoo (and most Linux distributions) use. Upstream has
been aware of the issue since November 2017 but has not fixed it yet.

Gentoo-Bug: https://bugs.gentoo.org/644226
Upstream-Bug: https://github.com/ovalhub/pyicu/issues/61
Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
Marek Szuba
2018-01-17 11:37:25 +01:00
parent b569e1d7da
commit fa36b42010

View File

@@ -31,5 +31,10 @@ S="${WORKDIR}/${MY_P}"
DOCS=(CHANGES CREDITS README.md)
python_test() {
esetup.py test
if [[ ${EPYTHON} == python2* ]]; then
# See Bug #644226
ewarn "Skipping tests for ${EPYTHON} because they are known to fail"
else
esetup.py test
fi
}