From f703ae86ce82834205e791d0c138f901494ddad0 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 9 Aug 2015 09:58:18 -0400 Subject: Remove should_be_python from the FileReporter interface --- coverage/summary.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/summary.py') 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: -- cgit v1.2.1