commit: 94f918abd574c964255f73f51e17ef770db67a67
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 28 09:31:34 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 28 10:13:16 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f918ab
dev-python/pytest-regressions: Make numpy test-dep optional
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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 42f0a8168f29..1f4d0d4876b9 100644
--- a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
+++ b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
@@ -24,7 +24,6 @@ RDEPEND="
BDEPEND="
test? (
- dev-python/numpy[${PYTHON_USEDEP}]
dev-python/tox[${PYTHON_USEDEP}]
)"
@@ -39,6 +38,11 @@ python_test() {
tests/test_image_regression.py::test_image_regression
)
fi
+ if ! has_version "dev-python/numpy[${PYTHON_USEDEP}]"; then
+ EPYTEST_IGNORE+=(
+ tests/test_ndarrays_regression.py
+ )
+ fi
if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
EPYTEST_DESELECT+=(
tests/test_filenames.py::test_foo