From 20fa7066b3c74916acc77fdbdfdc58d4db6eba5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 15 Jul 2018 20:18:59 +0200 Subject: 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). --- dev-python/cython/cython-0.28.4.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dev-python') 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" -- cgit v1.2.3