diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/plugin1.py | 1 | ||||
-rw-r--r-- | tests/plugin2.py | 1 | ||||
-rw-r--r-- | tests/test_execfile.py | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py index 63ebacf7..42769950 100644 --- a/tests/plugin1.py +++ b/tests/plugin1.py @@ -15,6 +15,7 @@ class Plugin(coverage.CoveragePlugin): """Trace only files named xyz.py""" if "xyz.py" in filename: return FileTracer(filename) + return None def file_reporter(self, filename): return FileReporter(filename) diff --git a/tests/plugin2.py b/tests/plugin2.py index 3bdfbdfd..9651ce63 100644 --- a/tests/plugin2.py +++ b/tests/plugin2.py @@ -13,6 +13,7 @@ class Plugin(coverage.CoveragePlugin): def file_tracer(self, filename): if "render.py" in filename: return RenderFileTracer() + return None def file_reporter(self, filename): return FileReporter(filename) diff --git a/tests/test_execfile.py b/tests/test_execfile.py index 032eaa29..693df71a 100644 --- a/tests/test_execfile.py +++ b/tests/test_execfile.py @@ -101,7 +101,7 @@ class RunFileTest(CoverageTest): class RunPycFileTest(CoverageTest): """Test cases for `run_python_file`.""" - def make_pyc(self): + def make_pyc(self): # pylint: disable=inconsistent-return-statements """Create a .pyc file, and return the relative path to it.""" if env.JYTHON: self.skipTest("Can't make .pyc files on Jython") |