summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-07-15 20:18:59 +0200
committerMichał Górny <mgorny@gentoo.org>2018-07-16 21:56:22 +0200
commit20fa7066b3c74916acc77fdbdfdc58d4db6eba5b (patch)
treed6ae3aaa08f407d983e520408122e00a3b57dc0d /dev-python
parent957a3699c98ea8160dadb7660c511c9889cf807b (diff)
downloadgentoo-20fa7066b3c74916acc77fdbdfdc58d4db6eba5b.tar.gz
gentoo-20fa7066b3c74916acc77fdbdfdc58d4db6eba5b.tar.bz2
gentoo-20fa7066b3c74916acc77fdbdfdc58d4db6eba5b.zip
dev-python/cython: Disable obsolete with_outer_raising test
Disable with_outer_raising test that is now obsolete because Python 3.7 forbids using StopIteration to terminate a generator (PEP 479).
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cython/cython-0.28.4.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-python/cython/cython-0.28.4.ebuild b/dev-python/cython/cython-0.28.4.ebuild
index eecc7a4ba326..cf9e239cebae 100644
--- a/dev-python/cython/cython-0.28.4.ebuild
+++ b/dev-python/cython/cython-0.28.4.ebuild
@@ -32,6 +32,14 @@ DEPEND="${RDEPEND}
SITEFILE=50cython-gentoo.el
S="${WORKDIR}/${MY_PN}-${PV%_*}"
+python_prepare_all() {
+ # tests behavior that is illegal in Python 3.7+
+ # https://github.com/cython/cython/issues/2454
+ sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
+
+ distutils-r1_python_prepare_all
+}
+
python_compile() {
if ! python_is_python3; then
local CFLAGS="${CFLAGS} -fno-strict-aliasing"