dev-python/pythran: fix tests (drop -Werror)

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-11-05 18:07:27 +00:00
parent e168221ed4
commit b16f59f577
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- a/pythran/tests/__init__.py
+++ b/pythran/tests/__init__.py
@@ -71,7 +71,7 @@ class TestEnv(unittest.TestCase):
module = pytest.mark.module
# default options used for the c++ compiler
- PYTHRAN_CXX_FLAGS = ['-O0', '-Wall', '-Werror', '-UNDEBUG',
+ PYTHRAN_CXX_FLAGS = ['-O0', '-Wall', '-UNDEBUG',
'-Wno-unused-function',
'-Wno-int-in-bool-context',
'-Wno-unknown-warning-option',

View File

@@ -36,6 +36,10 @@ BDEPEND="
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/${PN}-0.10.0-tests-werror.patch
)
src_prepare() {
sed -i -e '/pytest-runner/d' setup.py || die
distutils-r1_src_prepare