diff options
-rw-r--r-- | coverage/debug.py | 3 | ||||
-rw-r--r-- | tests/test_context.py | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/coverage/debug.py b/coverage/debug.py index 77ff3d11..3a6b1fdc 100644 --- a/coverage/debug.py +++ b/coverage/debug.py @@ -93,7 +93,8 @@ class DebugControlString(DebugControl): class NoDebugging(object): """A replacement for DebugControl that will never try to do anything.""" - def should(self, option): + def should(self, option): # pylint: disable=unused-argument + """Should we write debug messages? Never.""" return False diff --git a/tests/test_context.py b/tests/test_context.py index efc05418..e5ab4800 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -225,12 +225,15 @@ def plain_old_function(a, b): # pylint: disable=missing-docstring, unu def fake_out(self): # pylint: disable=missing-docstring, unused-argument return get_qualname() -def meth(self): +def patch_meth(self): # pylint: disable=missing-docstring, unused-argument return get_qualname() class QualnameTest(CoverageTest): """Tests of qualname_from_frame.""" + # Pylint gets confused about meth() below. + # pylint: disable=no-value-for-parameter + run_in_temp_dir = False def test_method(self): @@ -257,5 +260,5 @@ class QualnameTest(CoverageTest): def test_changeling(self): c = Child() - c.meth = meth - self.assertEqual(c.meth(c), "meth") + c.meth = patch_meth + self.assertEqual(c.meth(c), "patch_meth") |