diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-23 06:29:35 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-23 06:29:35 -0500 |
commit | 29356409a6827e78d3f5aa18d9a7939bee7b6fca (patch) | |
tree | ab1281f62f1be63d346707c5fc812596010bc347 /tests | |
parent | f81c9233740f5c2968447dd58d1185fa24994df0 (diff) | |
download | python-coveragepy-29356409a6827e78d3f5aa18d9a7939bee7b6fca.tar.gz |
Upgraded pylint to 1.4, removed useless suppressions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/backtest.py | 2 | ||||
-rw-r--r-- | tests/test_concurrency.py | 6 | ||||
-rw-r--r-- | tests/test_summary.py | 1 | ||||
-rw-r--r-- | tests/test_templite.py | 4 |
4 files changed, 5 insertions, 8 deletions
diff --git a/tests/backtest.py b/tests/backtest.py index 439493d..1b38cce 100644 --- a/tests/backtest.py +++ b/tests/backtest.py @@ -20,7 +20,7 @@ def run_command(cmd): stderr=subprocess.STDOUT ) output, _ = proc.communicate() - status = proc.returncode # pylint: disable=E1101 + status = proc.returncode # Get the output, and canonicalize it to strings with newlines. if not isinstance(output, str): diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 6fbac4a..02163d2 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -10,17 +10,17 @@ from tests.coveragetest import CoverageTest # These libraries aren't always available, we'll skip tests if they aren't. try: - import eventlet # pylint: disable=import-error + import eventlet except ImportError: eventlet = None try: - import gevent # pylint: disable=import-error + import gevent except ImportError: gevent = None try: - import greenlet # pylint: disable=import-error + import greenlet except ImportError: greenlet = None diff --git a/tests/test_summary.py b/tests/test_summary.py index ce668f7..c8364ca 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -201,7 +201,6 @@ class SummaryTest(CoverageTest): self.assertEqual(out, 'x\ny\n') report = self.report_from_command("coverage report --show-missing") - # pylint: disable=C0301 # Name Stmts Miss Branch BrPart Cover Missing # ------------------------------------------------------- # main 1 0 0 0 100% diff --git a/tests/test_templite.py b/tests/test_templite.py index aa697b7..b3e21e7 100644 --- a/tests/test_templite.py +++ b/tests/test_templite.py @@ -4,9 +4,7 @@ import re from coverage.templite import Templite, TempliteSyntaxError from tests.coveragetest import CoverageTest -# pylint: disable=W0612,E1101 -# Disable W0612 (Unused variable) and -# E1101 (Instance of 'foo' has no 'bar' member) +# pylint: disable=unused-variable class AnyOldObject(object): """Simple testing object. |