Skip to content

Commit

Permalink
resolves issue pytest-dev#11777
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyMagician03-UMich committed Apr 6, 2024
1 parent 5acc3f8 commit 4d27b05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/_pytest/terminal.py
Expand Up @@ -1409,7 +1409,10 @@ def _get_line_with_reprcrash_message(
pass
else:
if not running_on_ci():
available_width = tw.fullwidth - line_width
if config.get_verbosity() >= 2:
available_width = 500
else:
available_width = tw.fullwidth - line_width
msg = _format_trimmed(" - {}", msg, available_width)
else:
msg = f" - {msg}"
Expand Down

0 comments on commit 4d27b05

Please sign in to comment.