diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-04-20 16:46:52 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-04-20 21:58:08 +0200 |
commit | ed67c51ffe0bb68b570b71d481d7f2cad256a2ce (patch) | |
tree | 95aca1a7ae5d353cc8fb2b58fee46c2d38a40010 | |
parent | 5613da53d01d89e4ffe45703e2d99b747fe8eef8 (diff) | |
download | pylint-git-ed67c51ffe0bb68b570b71d481d7f2cad256a2ce.tar.gz |
[tests lint] Fix all E1101 no-member in pylint's own tests
-rw-r--r-- | tests/.test_pylintrc | 1 | ||||
-rw-r--r-- | tests/unittest_lint.py | 2 | ||||
-rw-r--r-- | tests/unittest_reporting.py | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/.test_pylintrc b/tests/.test_pylintrc index 18475060a..0185a09a8 100644 --- a/tests/.test_pylintrc +++ b/tests/.test_pylintrc @@ -22,7 +22,6 @@ disable= too-many-public-methods, unused-argument, undefined-loop-variable, - no-member, too-many-ancestors, singleton-comparison, fixme, diff --git a/tests/unittest_lint.py b/tests/unittest_lint.py index 14cdb0ced..56d032490 100644 --- a/tests/unittest_lint.py +++ b/tests/unittest_lint.py @@ -52,6 +52,8 @@ from pylint.reporters import text from pylint.utils import FileState, tokenize_module if os.name == "java": + # pylint: disable=no-member + # os._name is valid see https://www.programcreek.com/python/example/3842/os._name if os._name == "nt": HOME = "USERPROFILE" else: diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py index 87e98022a..4f3ef89b9 100644 --- a/tests/unittest_reporting.py +++ b/tests/unittest_reporting.py @@ -78,5 +78,6 @@ def test_display_results_is_renamed(): reporter = CustomReporter() with pytest.raises(AttributeError) as exc: + # pylint: disable=no-member reporter.display_results() assert "no attribute 'display_results'" in str(exc) |