Skip to content

Commit f59a8d1

Browse files
committed
fix test
1 parent aa201f3 commit f59a8d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/code/test_excinfo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,7 @@ def test_multiple() -> None:
17361736
)
17371737
result = pytester.runpytest("-vv")
17381738
assert result.ret == 1
1739+
backport_str = "exceptiongroup." if sys.version_info < (3, 11) else ""
17391740
result.stdout.fnmatch_lines(
17401741
[
17411742
"*= short test summary info =*",
@@ -1753,7 +1754,7 @@ def test_multiple() -> None:
17531754
),
17541755
(
17551756
"FAILED test_exceptiongroup_short_summary_info.py::test_multiple - "
1756-
"ExceptionGroup: bbbbbbbbbb (2 sub-exceptions)"
1757+
f"{backport_str}ExceptionGroup: bbbbbbbbbb (2 sub-exceptions)"
17571758
),
17581759
"*= 4 failed in *",
17591760
]

0 commit comments

Comments
 (0)