summaryrefslogtreecommitdiff
path: root/test/test_summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-04-20 13:10:09 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-04-20 13:10:09 -0400
commit886c61c219b68dd66103a8c05f96ae9bf6b82ad6 (patch)
treeb9d893b432f32bce7f24d1b044c44fc601b3c5c6 /test/test_summary.py
parent25b115e45df59da0b21cafe8288e850aa21525f5 (diff)
downloadpython-coveragepy-git-886c61c219b68dd66103a8c05f96ae9bf6b82ad6.tar.gz
Test (and fix) the not-python errors in base Reporter.
Diffstat (limited to 'test/test_summary.py')
-rw-r--r--test/test_summary.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_summary.py b/test/test_summary.py
index 8b264b55..71fbb1a6 100644
--- a/test/test_summary.py
+++ b/test/test_summary.py
@@ -144,7 +144,7 @@ class SummaryTest(CoverageTest):
last = re.sub("parse '.*mycode.py", "parse 'mycode.py", last)
# The actual error message varies version to version
last = re.sub(": '.*' at", ": 'error' at", last)
- self.assertEqual(last,
+ self.assertEqual(last,
"mycode NotPython: "
"Couldn't parse 'mycode.py' as Python source: "
"'error' at line 1"
@@ -172,10 +172,10 @@ class SummaryTest(CoverageTest):
# Before reporting, change it to be an HTML file.
self.make_file("mycode.html", "<h1>This isn't python at all!</h1>")
report = self.report_from_command("coverage -r mycode.html")
-
+
# Name Stmts Miss Cover
# ----------------------------
-
+
self.assertEqual(self.line_count(report), 2)