nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From a4e8e78f2ba6d44b6255e2cb9eb4d4b0655b8e56 Mon Sep 17 00:00:00 2001
2From: Scott Talbert <swt@techie.net>
3Date: Sun, 14 Dec 2025 22:25:51 -0500
4Subject: [PATCH] Adapt tests to pytest 9 output format
5
6---
7 testing/test_xfail_behavior.py | 3 +++
8 1 file changed, 3 insertions(+)
9
10diff --git a/testing/test_xfail_behavior.py b/testing/test_xfail_behavior.py
11index 2b8946a..fdad433 100644
12--- a/testing/test_xfail_behavior.py
13+++ b/testing/test_xfail_behavior.py
14@@ -8,6 +8,7 @@
15 FAILED_WORD = "FAILED" if IS_PYTEST4_PLUS else "FAIL"
16 PYTEST_GTE_7_2 = hasattr(pytest, "version_tuple") and pytest.version_tuple >= (7, 2) # type: ignore[attr-defined]
17 PYTEST_GTE_8_0 = hasattr(pytest, "version_tuple") and pytest.version_tuple >= (8, 0) # type: ignore[attr-defined]
18+PYTEST_GTE_9_0 = hasattr(pytest, "version_tuple") and pytest.version_tuple >= (9, 0) # type: ignore[attr-defined]
19
20 pytestmark = pytest.mark.skipif( # pylint: disable=invalid-name
21 not hasattr(os, "fork"), # noqa: WPS421
22@@ -72,6 +73,8 @@ def test_xfail(is_crashing, is_strict, testdir):
23 )
24 if expected_lowercase == "xfailed" and PYTEST_GTE_7_2:
25 short_test_summary += " - " + reason_string
26+ if expected_lowercase == "failed" and PYTEST_GTE_9_0:
27+ short_test_summary += " - [XPASS(strict)] The process gets termin..."
28 total_summary_line = f"*==== 1 {expected_lowercase!s} in 0.*s* ====*"
29
30 expected_lines = (