diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-12-23 16:54:30 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-12-23 16:54:30 -0500 |
commit | d8288282fcd54ec849b3345e564b8c3260d10bb5 (patch) | |
tree | 5877fe2021dad6fe134b686d2b66e440fd4d22eb /tests | |
parent | abb1c6d955a8b90a3993e69ffbabe5244c609f2b (diff) | |
download | python-coveragepy-git-d8288282fcd54ec849b3345e564b8c3260d10bb5.tar.gz |
Pylint 1.8.1, and fix its new warnings
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") |