From: Michał Górny Date: Sun, 15 Jul 2018 18:18:59 +0000 (+0200) Subject: dev-python/cython: Disable obsolete with_outer_raising test X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=20fa7066b3c74916acc77fdbdfdc58d4db6eba5b;p=gentoo.git 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). --- 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"