commit:     ab3027da217a4e32a853a41ae37c013457556f0e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 13 17:55:12 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 13 17:56:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab3027da

dev-python/pyparsing: Skip mpl tests when unavailable

Closes: https://bugs.gentoo.org/939589
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pyparsing/pyparsing-3.2.0_beta1.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-python/pyparsing/pyparsing-3.2.0_beta1.ebuild 
b/dev-python/pyparsing/pyparsing-3.2.0_beta1.ebuild
index 5387f6f9faf2..bd3fdd7b49b7 100644
--- a/dev-python/pyparsing/pyparsing-3.2.0_beta1.ebuild
+++ b/dev-python/pyparsing/pyparsing-3.2.0_beta1.ebuild
@@ -39,6 +39,12 @@ python_test() {
                
tests/test_unit.py::Test10_WithLeftRecursionParsingBoundedMemo::testEmptyExpressionsAreHandledProperly
        )
 
+       if ! has_version "dev-python/matplotlib[${PYTHON_USEDEP}]"; then
+               EPYTEST_IGNORE+=(
+                       tests/test_matplotlib_cases.py
+               )
+       fi
+
        local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
        epytest
 }

Reply via email to