summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-09 09:58:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-09 09:58:18 -0400
commitf703ae86ce82834205e791d0c138f901494ddad0 (patch)
tree65ea982f4ceddd169fd8915c7d336a9146d9a0aa /coverage/summary.py
parent9b685f291dee3f23785a0ab3dff4e413ea98f0da (diff)
downloadpython-coveragepy-f703ae86ce82834205e791d0c138f901494ddad0.tar.gz
Remove should_be_python from the FileReporter interface
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 03270c0..7eb0f2f 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -87,6 +87,8 @@ class SummaryReporter(Reporter):
report_it = not self.config.ignore_errors
if report_it:
typ, msg = sys.exc_info()[:2]
+ # NotPython is only raised by PythonFileReporter, which has a
+ # should_be_python() method.
if typ is NotPython and not fr.should_be_python():
report_it = False
if report_it: