Source: pytest-forked Version: 1.4.0-1 Severity: serious Tags: ftbfs patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Dear maintainer, your package FTBFS with pytest 7.2; the test summary has been augmented with a reason, which is not captured by test_xfail_behavior.py: Relevant excerpt from build log: pytest_run_result = testdir.runpytest(test_module, "-ra") > pytest_run_result.stdout.fnmatch_lines(expected_lines) E Failed: fnmatch: '*==== test session starts ====*' E with: '============================= test session starts ==============================' E nomatch: 'plugins: forked*' E and: 'platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack' E and: 'rootdir: /tmp/pytest-of-roehling/pytest-1/test_xfail2' E fnmatch: 'plugins: forked*' E with: 'plugins: forked-1.4.0' E exact match: 'collected 1 item' E nomatch: 'test_xfail.py x*' E and: '' E fnmatch: 'test_xfail.py x*' E with: 'test_xfail.py x [100%]' E nomatch: '*==== short test summary info ====*' E and: '' E fnmatch: '*==== short test summary info ====*' E with: '=========================== short test summary info ============================' E nomatch: 'XFAIL test_xfail.py::test_function' E and: 'XFAIL test_xfail.py::test_function - reason: The process gets terminated; pytest-forked reason: :-1: running the test CRASHED with signal 15' E and: '============================== 1 xfailed in 0.01s ==============================' E remains unmatched: 'XFAIL test_xfail.py::test_function' The following patch will fix the issue: diff --git a/testing/test_xfail_behavior.py b/testing/test_xfail_behavior.py index 8c6e55a..91f7638 100644 - --- a/testing/test_xfail_behavior.py +++ b/testing/test_xfail_behavior.py @@ -55,7 +55,7 @@ def test_xfail(is_crashing, is_strict, testdir): failures_test_name = "*____ test_function ____*" failures_test_reason = "[XPASS(strict)] The process gets terminated" short_test_summary_title = "*==== short test summary info ====*" - - short_test_summary = "{expected_word!s} test_xfail.py::test_function".format( + short_test_summary = "{expected_word!s} test_xfail.py::test_function*".format( **locals() ) if expected_lowercase == "xpassed": Cheers Timo -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmOYYS4ACgkQ+C8H+466 LVlWVwv/RMURYZaQ0HCiKpTLUQxLWgaR1iROXq3liPamtLlVv5UpdK6B70Y8V4UM DllqamD2qcUtKM6/U9VsEXaei+zR4yNRqqFcTyiim+fyaj2jXEPDyvMsXbIagPwf V8msgNI4Kp+jdC3wob4iz5P48MRfkZ7ocajbSj6R/5baEck2KE4OSOdWpo5/4Mqa D2K9C/WEIS/kqiB1m/+gIJhDVzbztU+5S6R/ou93sprNYBsdWmrv1l6BsdsLXbYT D18OPHanPciLotHNtx5KkqNVJ6jR6RwBaCVZuunofiPahZ4x+coBcmPz4kVyWag/ d+MEUH1RHYKagGsMyizcXkqlGjvD9+d5TzBxC6pdNs587TPz42I5yMrMWjr+Ee0J 4JH9pqJA8U10KHUjOYLR+CjiJ70msfvODeLqiuZ3Gbr1jCvA4JSU33OfcWT1VLN3 3pHX/UJGNSObbpFyxmUXdxpj/3wo3FUl59zI0ADv7xOef6xmdayKnh04KaZOoFGx l4jQSWMf =Qwob -----END PGP SIGNATURE-----