Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib/
Date: Tue, 03 May 2022 10:20:10
Message-Id: 1651573200.0a5c527fd7bf322afc3cd8e4438bef865d2e8fc1.mgorny@gentoo
1 commit: 0a5c527fd7bf322afc3cd8e4438bef865d2e8fc1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 09:35:40 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 10:20:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a5c527f
7
8 dev-python/matplotlib: Run pytest directly
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/matplotlib/matplotlib-3.5.2.ebuild | 11 ++++++++++-
13 1 file changed, 10 insertions(+), 1 deletion(-)
14
15 diff --git a/dev-python/matplotlib/matplotlib-3.5.2.ebuild b/dev-python/matplotlib/matplotlib-3.5.2.ebuild
16 index b34037d20297..0aea928dc2d7 100644
17 --- a/dev-python/matplotlib/matplotlib-3.5.2.ebuild
18 +++ b/dev-python/matplotlib/matplotlib-3.5.2.ebuild
19 @@ -260,6 +260,13 @@ src_test() {
20 }
21
22 python_test() {
23 + local EPYTEST_DESELECT=(
24 + # broken by -Wdefault
25 + "tests/test_rcparams.py::test_validator_invalid[validate_strlist-arg6-MatplotlibDeprecationWarning]"
26 + "tests/test_rcparams.py::test_validator_invalid[validate_strlist-arg7-MatplotlibDeprecationWarning]"
27 + tests/test_testing.py::test_warn_to_fail
28 + )
29 +
30 # we need to rebuild mpl against bundled freetype, otherwise
31 # over 1000 tests will fail because of mismatched font rendering
32 grep -v system_freetype "${BUILD_DIR}"/setup.cfg \
33 @@ -269,7 +276,9 @@ python_test() {
34 distutils-r1_python_compile -j1 --build-lib="${BUILD_DIR}"/test-lib
35 local -x PYTHONPATH=${BUILD_DIR}/test-lib:${PYTHONPATH}
36
37 - "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(m.test(argv=['-m', 'not network'], verbosity=2))" || die
38 + # speed tests up
39 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
40 + nonfatal epytest --pyargs matplotlib -m "not network" || die
41 }
42
43 python_install() {