Skip to content

Commit

Permalink
Truncate pytest failure report for ascii diffs (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman authored Jan 8, 2025
1 parent 2297019 commit 43bd03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def compare_outputs(self, outputs, raise_error=True):
sys.stdout.writelines(udiff)
sys.stdout = old_stdout
udiff_report = udiffIO.getvalue()
creature_report += udiff_report
creature_report += udiff_report[:100] # TRUNCATED to first 100 characters
if len(udiff_report) > 2 and all_okay:
all_okay = False
if len(udiff_report) > 2:
Expand Down

0 comments on commit 43bd03b

Please sign in to comment.