summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-05-31 23:18:23 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-05-31 23:18:23 -0400
commit436f9067dd78373555b6ab12db9c20406467eabb (patch)
tree8f09a991c21957655d5d2341ac09cf7079298ab3
parent90df419fb875c0bd8e1f5534a16441e0caeef1b8 (diff)
downloadpython-coveragepy-436f9067dd78373555b6ab12db9c20406467eabb.tar.gz
Remove a bunch of warnings from pylint.
-rw-r--r--.pylintrc3
-rw-r--r--test/coveragetest.py7
2 files changed, 7 insertions, 3 deletions
diff --git a/.pylintrc b/.pylintrc
index aa2d07e..54bdd6a 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -73,8 +73,9 @@ disable=
R0201,C0321,R0401,W0403,E1103,
# Messages that are noisy for now, eventually maybe we'll turn them on:
# C0103:256:coverage.morf_filename: Invalid name "f" (should match [a-z_][a-z0-9_]{2,30}$)
+# W0212: 86:Reporter.report_files: Access to a protected member _analyze of a client class
# W0404: 22:run_tests_with_coverage: Reimport 'coverage' (imported line 18)
- C0103,W0404
+ C0103,W0212,W0404
[REPORTS]
diff --git a/test/coveragetest.py b/test/coveragetest.py
index c227659..a94f512 100644
--- a/test/coveragetest.py
+++ b/test/coveragetest.py
@@ -86,8 +86,11 @@ class CoverageTest(TestCase):
self.clean_modules()
def clean_modules(self):
- # Remove any new modules imported during the test run. This lets us
- # import the same source files for more than one test.
+ """Remove any new modules imported during the test run.
+
+ This lets us import the same source files for more than one test.
+
+ """
for m in [m for m in sys.modules if m not in self.old_modules]:
del sys.modules[m]