commit:     f0ff4c34b28d838829f419776c6726f122509299
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  7 11:19:37 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun  7 11:20:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ff4c34

dev-python/matplotlib: Fix flaky usage and test deps

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/matplotlib/matplotlib-3.2.1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-python/matplotlib/matplotlib-3.2.1.ebuild 
b/dev-python/matplotlib/matplotlib-3.2.1.ebuild
index 1d0da114a2c..73d88adfdbe 100644
--- a/dev-python/matplotlib/matplotlib-3.2.1.ebuild
+++ b/dev-python/matplotlib/matplotlib-3.2.1.ebuild
@@ -89,6 +89,7 @@ BDEPEND="
                >=media-gfx/graphviz-2.42.3[cairo]
        )
        test? (
+               dev-python/flaky[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
                dev-python/pygobject:3[cairo?,${PYTHON_USEDEP}]
                x11-libs/gtk+:3[introspection]
@@ -99,7 +100,7 @@ BDEPEND="
 # Other than that, the ebuild shall be fit for out-of-source build.
 DISTUTILS_IN_SOURCE_BUILD=1
 
-distutils_enable_tests nose
+distutils_enable_tests pytest
 
 pkg_setup() {
        unset DISPLAY # bug #278524
@@ -139,6 +140,9 @@ python_prepare_all() {
                -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \
                || die "sed pyparsing failed"
 
+       sed -e 's:\(@pytest.mark.flaky\)(reruns=3):\1:' \
+               -i lib/matplotlib/tests/test_*.py || die
+
        hprefixify setupext.py
 
        rm -rf libqhull || die

Reply via email to