Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display single contained exception in excgroups in test summary #12975

Merged
merged 7 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
jakkdl committed Nov 19, 2024
commit f59a8d18c5e7071e4af06b7f0571cfa22c1b1544
3 changes: 2 additions & 1 deletion testing/code/test_excinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,7 @@ def test_multiple() -> None:
)
result = pytester.runpytest("-vv")
assert result.ret == 1
backport_str = "exceptiongroup." if sys.version_info < (3, 11) else ""
result.stdout.fnmatch_lines(
[
"*= short test summary info =*",
Expand All @@ -1753,7 +1754,7 @@ def test_multiple() -> None:
),
(
"FAILED test_exceptiongroup_short_summary_info.py::test_multiple - "
"ExceptionGroup: bbbbbbbbbb (2 sub-exceptions)"
f"{backport_str}ExceptionGroup: bbbbbbbbbb (2 sub-exceptions)"
),
"*= 4 failed in *",
]
Expand Down