From 9b1318c0fb150ab019888f86d384f10241baaf16 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 11 May 2009 22:11:37 -0400 Subject: Reporting on nothing is OK. --- coverage/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/summary.py') diff --git a/coverage/summary.py b/coverage/summary.py index 275075d..8a601a6 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -18,7 +18,7 @@ class SummaryReporter(Reporter): self.find_code_units(morfs, omit_prefixes) # Prepare the formatting strings - max_name = max(5, max(map(lambda cu: len(cu.name), self.code_units))) + max_name = max([5] + map(lambda cu: len(cu.name), self.code_units)) fmt_name = "%%- %ds " % max_name fmt_err = fmt_name + "%s: %s\n" header = fmt_name % "Name" + " Stmts Exec Cover\n" -- cgit v1.2.1