dev-python/pyicu-2.0.2: skip tests on python2
authorMarek Szuba <marecki@gentoo.org>
Wed, 17 Jan 2018 10:37:25 +0000 (11:37 +0100)
committerMarek Szuba <marecki@gentoo.org>
Wed, 17 Jan 2018 10:44:16 +0000 (11:44 +0100)
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

dev-python/pyicu/pyicu-2.0.2.ebuild

index 1e6ff018f9863f00fb990b2cad3c79c83dfe0e87..4dc247fee2d4becb148a18fca148079a19759922 100644 (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
 }