From 934b04fcc97052ed7fcb95cabe6b7793aa5b2fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 9 May 2024 18:55:34 +0200 Subject: [PATCH] dev-python/pytest-rerunfailures: Deselect tests failing with pytest-8.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/931553 Signed-off-by: Michał Górny --- .../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 fbaa42713a4ce..2c7d0538c7c64 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