summaryrefslogtreecommitdiff
path: root/_pytest/assertion/truncate.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/assertion/truncate.py')
-rw-r--r--_pytest/assertion/truncate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/_pytest/assertion/truncate.py b/_pytest/assertion/truncate.py
index 2ed12e2e5..912a2f16f 100644
--- a/_pytest/assertion/truncate.py
+++ b/_pytest/assertion/truncate.py
@@ -69,10 +69,10 @@ def _truncate_explanation(input_lines, max_lines=None, max_chars=None):
truncated_line_count += 1 # Account for the part-truncated final line
msg = '...Full output truncated'
if truncated_line_count == 1:
- msg += ' ({0} line hidden)'.format(truncated_line_count)
+ msg += ' ({} line hidden)'.format(truncated_line_count)
else:
- msg += ' ({0} lines hidden)'.format(truncated_line_count)
- msg += ", {0}" .format(USAGE_MSG)
+ msg += ' ({} lines hidden)'.format(truncated_line_count)
+ msg += ", {}" .format(USAGE_MSG)
truncated_explanation.extend([
six.text_type(""),
six.text_type(msg),