We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6762f5a commit f27a339Copy full SHA for f27a339
1 file changed
src/_pytest/assertion/truncate.py
@@ -59,6 +59,12 @@ def _truncate_explanation(
59
Truncates to either max_lines, or max_chars - whichever the input reaches
60
first, taking the truncation explanation into account. The remaining lines
61
will be replaced by a usage message.
62
+
63
+ If max_chars=0, no truncation by character count is performed.
64
+ If max_lines=0, no truncation by line count is performed.
65
66
+ When this function is launched we know max_lines > 0 or max_chars > 0
67
+ because _get_truncation_parameters was called first.
68
"""
69
# Check if truncation required
70
input_char_count = len("".join(input_lines))
0 commit comments