commit: 934b04fcc97052ed7fcb95cabe6b7793aa5b2fc4 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu May 9 16:55:34 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu May 9 16:55:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=934b04fc
dev-python/pytest-rerunfailures: Deselect tests failing with pytest-8.2 Closes: https://bugs.gentoo.org/931553 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../pytest-rerunfailures/pytest-rerunfailures-14.0.ebuild | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dev-python/pytest-rerunfailures/pytest-rerunfailures-14.0.ebuild b/dev-python/pytest-rerunfailures/pytest-rerunfailures-14.0.ebuild index fbaa42713a4c..2c7d0538c7c6 100644 --- a/dev-python/pytest-rerunfailures/pytest-rerunfailures-14.0.ebuild +++ b/dev-python/pytest-rerunfailures/pytest-rerunfailures-14.0.ebuild @@ -26,6 +26,18 @@ RDEPEND=" distutils_enable_tests pytest python_test() { + local EPYTEST_DESELECT=() + if has_version ">=dev-python/pytest-8.2[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + # https://github.com/pytest-dev/pytest-rerunfailures/issues/267 + tests/test_pytest_rerunfailures.py::test_exception_match_only_rerun_in_dual_query + tests/test_pytest_rerunfailures.py::test_exception_matches_only_rerun_query + tests/test_pytest_rerunfailures.py::test_exception_matches_rerun_except_query + tests/test_pytest_rerunfailures.py::test_exception_not_match_rerun_except_query + tests/test_pytest_rerunfailures.py::test_run_session_teardown_once_after_reruns + ) + fi + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 local -x PYTEST_PLUGINS=pytest_rerunfailures epytest
