From 83aa28fa8236b9dc2f1f0154e9962b02fe49a50e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 9 Jun 2016 22:29:00 -0400 Subject: Fix these new tests to really test the code --- coverage/summary.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'coverage/summary.py') 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() -- cgit v1.2.1