commit: c890846a3a7f5387ac6c9620590a90352ed88215
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 28 09:02:37 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 28 10:13:15 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c890846a
dev-python/pytest-regressions: Make test deps on mpl & pillow opt.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../pytest-regressions/pytest-regressions-2.3.1.ebuild | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
index 2207079a0ece..42f0a8168f29 100644
--- a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
+++ b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
@@ -24,9 +24,7 @@ RDEPEND="
BDEPEND="
test? (
- dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/pillow[${PYTHON_USEDEP}]
dev-python/tox[${PYTHON_USEDEP}]
)"
@@ -36,6 +34,11 @@ distutils_enable_sphinx doc dev-python/sphinx_rtd_theme
python_test() {
local EPYTEST_DESELECT=()
local EPYTEST_IGNORE=()
+ if ! has_version "dev-python/matplotlib[${PYTHON_USEDEP}]"; then
+ EPYTEST_DESELECT+=(
+ tests/test_image_regression.py::test_image_regression
+ )
+ fi
if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
EPYTEST_DESELECT+=(
tests/test_filenames.py::test_foo
@@ -47,6 +50,11 @@ python_test() {
tests/test_num_regression.py
)
fi
+ if ! has_version "dev-python/pillow[${PYTHON_USEDEP}]"; then
+ EPYTEST_DESELECT+=(
+ tests/test_image_regression.py
+ )
+ fi
epytest
}