summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-06-09 22:29:00 -0400
committerNed Batchelder <ned@nedbatchelder.com>2016-06-09 22:29:00 -0400
commit83aa28fa8236b9dc2f1f0154e9962b02fe49a50e (patch)
tree9b2a21a97122eb245b3a0a6dd55fc56b824b5e47 /coverage/summary.py
parent35fde077ef2e5ca7fa8eae32cc576394e410afbc (diff)
downloadpython-coveragepy-83aa28fa8236b9dc2f1f0154e9962b02fe49a50e.tar.gz
Fix these new tests to really test the code
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 542c21f..95e78c3 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -27,7 +27,7 @@ class SummaryReporter(Reporter):
"""
file_reporters = self.find_file_reporters(morfs)
- # Prepare the formatting strings
+ # Prepare the formatting strings, header, and column sorting.
max_name = max([len(fr.relative_filename()) for fr in file_reporters] + [5])
fmt_name = u"%%- %ds " % max_name
fmt_err = u"%s %s: %s"
@@ -65,7 +65,8 @@ class SummaryReporter(Reporter):
writeout(rule)
# `lines` is a list of pairs, (line text, line values). The line text
- # is what will be printed, the line values are for sorting.
+ # is a string that will be printed, and line values is a tuple of
+ # sortable values.
lines = []
total = Numbers()