commit: 7888ee53660ad59b61b869b0a92f5ec2ea48eccd
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 28 08:32:38 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 28 08:32:38 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7888ee53
dev-python/pytest-regressions: Make pandas test-dep optional
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../pytest-regressions-2.3.1.ebuild | 19 ++++++++++++++++++-
1 file changed, 18 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 8cf9cc85818f..2207079a0ece 100644
--- a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
+++ b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
@@ -26,10 +26,27 @@ BDEPEND="
test? (
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/pandas[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/tox[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
distutils_enable_sphinx doc dev-python/sphinx_rtd_theme
+
+python_test() {
+ local EPYTEST_DESELECT=()
+ local EPYTEST_IGNORE=()
+ if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
+ EPYTEST_DESELECT+=(
+ tests/test_filenames.py::test_foo
+ tests/test_filenames.py::TestClass::test_foo
+
tests/test_filenames.py::TestClassWithIgnoredName::test_foo
+ )
+ EPYTEST_IGNORE+=(
+ tests/test_dataframe_regression.py
+ tests/test_num_regression.py
+ )
+ fi
+
+ epytest
+}