summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
Diffstat (limited to 'coverage')
-rw-r--r--coverage/control.py10
-rw-r--r--coverage/htmlfiles/pyfile.html2
-rw-r--r--coverage/summary.py2
3 files changed, 7 insertions, 7 deletions
diff --git a/coverage/control.py b/coverage/control.py
index ef1a6205..f9d23066 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -186,11 +186,11 @@ class coverage:
`morf` is a module or a filename. It will be analyzed to determine
its coverage statistics. The return value is a 5-tuple:
- * The filename for the module.
- * A list of line numbers of executable statements.
- * A list of line numbers of excluded statements.
- * A list of line numbers of statements not run (missing from execution).
- * A readable formatted string of the missing line numbers.
+ * The filename for the module.
+ * A list of line numbers of executable statements.
+ * A list of line numbers of excluded statements.
+ * A list of line numbers of statements not run (missing from execution).
+ * A readable formatted string of the missing line numbers.
The analysis uses the source file itself and the current measured
coverage data.
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index afcb4a5e..d1810fa1 100644
--- a/coverage/htmlfiles/pyfile.html
+++ b/coverage/htmlfiles/pyfile.html
@@ -21,7 +21,7 @@ function toggle_lines(btn, cls) {
<body>
<div id='header'>
<div class='content'>
- <h1>Coverage for <b>{{cu.filename|escape}}</b>:
+ <h1>Coverage for <b>{{cu.name|escape}}</b> :
<span class='pc_cov'>{{pc_cov|format_pct}}%</span>
</h1>
<h2 class='stats'>
diff --git a/coverage/summary.py b/coverage/summary.py
index 712febc6..916b41e7 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -20,7 +20,7 @@ class SummaryReporter(Reporter):
# Prepare the formatting strings
max_name = max([len(cu.name) for cu in self.code_units] + [5])
fmt_name = "%%- %ds " % max_name
- fmt_err = fmt_name + "%s: %s\n"
+ fmt_err = "%s %s: %s\n"
header = fmt_name % "Name" + " Stmts Exec Cover\n"
fmt_coverage = fmt_name + "% 6d % 6d % 5d%%\n"
if self.show_missing: