python-pytest-rerunfailures fails to build with Python 3.14.0a2. ________________ test_exception_match_only_rerun_in_dual_query _________________ testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_exception_match_only_rerun_in_dual_query0')> def test_exception_match_only_rerun_in_dual_query(testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="session", autouse=True) def session_fixture(): print("session setup") yield "session" print("session teardown") @pytest.fixture(scope="function", autouse=True) def function_fixture(): print("function setup") yield "function" print("function teardown") @pytest.mark.flaky(reruns=1, rerun_except=["Not"], only_rerun=["Exception"]) def test_1(session_fixture, function_fixture): raise Exception("fail") """ ) result = testdir.runpytest() assert_outcomes(result, passed=0, failed=1, rerun=1) > result.stdout.fnmatch_lines("session teardown") E Failed: nomatch: 'session teardown' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.14.0a2, pytest-8.3.3, pluggy-1.5.0' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_exception_match_only_rerun_in_dual_query0' E and: 'plugins: rerunfailures-14.0' E and: 'collected 1 item' E and: '' E and: 'test_exception_match_only_rerun_in_dual_query.py RF [100%]' E and: '' E and: '=================================== FAILURES ===================================' E and: '____________________________________ test_1 ____________________________________' E and: '' E and: "session_fixture = 'session', function_fixture = 'function'" E and: '' E and: ' @pytest.mark.flaky(reruns=1, rerun_except=["Not"], only_rerun=["Exception"])' E and: ' def test_1(session_fixture, function_fixture):' E and: '> raise Exception("fail")' E and: 'E Exception: fail' E and: '' E and: 'test_exception_match_only_rerun_in_dual_query.py:17: Exception' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'session setup' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '---------------------------- Captured stdout setup -----------------------------' E and: 'function setup' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '--------------------------- Captured stdout teardown ---------------------------' E and: 'function teardown' E and: '=========================== short test summary info ============================' E and: 'FAILED test_exception_match_only_rerun_in_dual_query.py::test_1 - Exception: ...' E and: '========================== 1 failed, 1 rerun in 0.01s ==========================' E remains unmatched: 'session teardown' /builddir/build/BUILD/python-pytest-rerunfailures-14.0-build/pytest-rerunfailures-14.0/tests/test_pytest_rerunfailures.py:1274: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.14.0a2, pytest-8.3.3, pluggy-1.5.0 rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_exception_match_only_rerun_in_dual_query0 plugins: rerunfailures-14.0 collected 1 item test_exception_match_only_rerun_in_dual_query.py RF [100%] =================================== FAILURES =================================== ____________________________________ test_1 ____________________________________ session_fixture = 'session', function_fixture = 'function' @pytest.mark.flaky(reruns=1, rerun_except=["Not"], only_rerun=["Exception"]) def test_1(session_fixture, function_fixture): > raise Exception("fail") E Exception: fail test_exception_match_only_rerun_in_dual_query.py:17: Exception ---------------------------- Captured stdout setup ----------------------------- session setup function setup --------------------------- Captured stdout teardown --------------------------- function teardown ---------------------------- Captured stdout setup ----------------------------- function setup --------------------------- Captured stdout teardown --------------------------- function teardown --------------------------- Captured stdout teardown --------------------------- function teardown =========================== short test summary info ============================ FAILED test_exception_match_only_rerun_in_dual_query.py::test_1 - Exception: ... ========================== 1 failed, 1 rerun in 0.01s ========================== =========================== short test summary info ============================ FAILED tests/test_pytest_rerunfailures.py::test_run_session_teardown_once_after_reruns FAILED tests/test_pytest_rerunfailures.py::test_exception_matches_rerun_except_query FAILED tests/test_pytest_rerunfailures.py::test_exception_not_match_rerun_except_query FAILED tests/test_pytest_rerunfailures.py::test_exception_matches_only_rerun_query FAILED tests/test_pytest_rerunfailures.py::test_exception_match_only_rerun_in_dual_query =================== 5 failed, 103 passed, 1 skipped in 3.56s =================== https://docs.python.org/3.14/whatsnew/3.14.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08293451-python-pytest-rerunfailures/ For all our attempts to build python-pytest-rerunfailures with Python 3.14, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-pytest-rerunfailures/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.14: https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ Let us know here if you have any questions. Python 3.14 is planned to be included in Fedora 43. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.