mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/pythran: fix tests (drop -Werror)
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
11
dev-python/pythran/files/pythran-0.10.0-tests-werror.patch
Normal file
11
dev-python/pythran/files/pythran-0.10.0-tests-werror.patch
Normal 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',
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user