diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-06-09 22:29:00 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-06-09 22:29:00 -0400 |
commit | f38c3df8176333678add9edd7edd34152fd05929 (patch) | |
tree | 0fece55b866b9fb843f603fa0a1b991a59a2517e /coverage/summary.py | |
parent | 7a09376437a64c8f093e92dc9b523da28837dc11 (diff) | |
download | python-coveragepy-git-f38c3df8176333678add9edd7edd34152fd05929.tar.gz |
Fix these new tests to really test the code
Diffstat (limited to 'coverage/summary.py')
-rw-r--r-- | coverage/summary.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index 542c21fe..95e78c3d 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() |