Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions changelog/14063.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Truncated short test summary to first line of error message if not in verbose mode.
2 changes: 2 additions & 0 deletions src/_pytest/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1535,6 +1535,8 @@ def _get_line_with_reprcrash_message(
else:
# Type ignored intentionally -- possible AttributeError expected.
msg = rep.longrepr.reprcrash.message # type: ignore[union-attr]
if msg and not config.option.verbose >= 2:
msg = msg.strip().splitlines()[0]
except AttributeError:
pass
else:
Expand Down