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
commit25b115e45df59da0b21cafe8288e850aa21525f5 (patch)
tree892f51df3644f99d8cd4fbd02a9e6a28956aa76e /coverage/summary.py
parent43bf01f860dff446b30d5ca00bcd0dd1e41e9a09 (diff)
downloadpython-coveragepy-git-25b115e45df59da0b21cafe8288e850aa21525f5.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 fec94810..c8fa5be4 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))