summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-04-20 09:53:17 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-04-20 09:53:17 -0400
commitd282cf277a701ccaac4ce82fbc9996b020e7dcb8 (patch)
tree75871dc821adb0a2820e26be889820ef785a64b8 /coverage/summary.py
parentca739cdb76ca212c71732066f7823dc65c8e79af (diff)
downloadpython-coveragepy-d282cf277a701ccaac4ce82fbc9996b020e7dcb8.tar.gz
Test (and fix) the summary reporting failures due to not being able to parse the file.
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index fec9481..c8fa5be 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -68,7 +68,7 @@ class SummaryReporter(Reporter):
report_it = not self.config.ignore_errors
if report_it:
typ, msg = sys.exc_info()[:2]
- if typ is NotPython and not cu.should_be_python(".py"):
+ if typ is NotPython and not cu.should_be_python():
report_it = False
if report_it:
outfile.write(fmt_err % (cu.name, typ.__name__, msg))