diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-05-01 13:53:10 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-05-01 15:03:11 +0200 |
commit | ec2957f31e18a759c4b6202d3fdd78dcf1b28428 (patch) | |
tree | 5d8be55571692cc71df47c05c1e0bd667d900eca /tests | |
parent | 21519eae95cf95a9697100d0f189309c5870f784 (diff) | |
download | pylint-git-ec2957f31e18a759c4b6202d3fdd78dcf1b28428.tar.gz |
Disable redefined-outer-name necessary by design with pytest
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checkers/unittest_python3.py | 2 | ||||
-rw-r--r-- | tests/extensions/test_check_mccabe.py | 1 | ||||
-rw-r--r-- | tests/lint/unittest_lint.py | 1 | ||||
-rw-r--r-- | tests/test_import_graph.py | 1 | ||||
-rw-r--r-- | tests/test_regr.py | 1 | ||||
-rw-r--r-- | tests/unittest_pyreverse_diadefs.py | 2 | ||||
-rw-r--r-- | tests/unittest_pyreverse_inspector.py | 2 | ||||
-rw-r--r-- | tests/unittest_reporting.py | 1 |
8 files changed, 9 insertions, 2 deletions
diff --git a/tests/checkers/unittest_python3.py b/tests/checkers/unittest_python3.py index 9797c11d2..2ccd36c13 100644 --- a/tests/checkers/unittest_python3.py +++ b/tests/checkers/unittest_python3.py @@ -23,7 +23,7 @@ """Tests for the python3 checkers.""" -# pylint: disable=too-many-public-methods +# pylint: disable=too-many-public-methods,redefined-outer-name import astroid diff --git a/tests/extensions/test_check_mccabe.py b/tests/extensions/test_check_mccabe.py index d54776a66..dfb846b3d 100644 --- a/tests/extensions/test_check_mccabe.py +++ b/tests/extensions/test_check_mccabe.py @@ -8,6 +8,7 @@ # For details: https://github.com/PyCQA/pylint/blob/master/COPYING """Tests for the pylint checker in :mod:`pylint.extensions.check_mccabe""" +# pylint: disable=redefined-outer-name import os.path as osp diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py index 462695169..c80b99798 100644 --- a/tests/lint/unittest_lint.py +++ b/tests/lint/unittest_lint.py @@ -32,6 +32,7 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# pylint: disable=redefined-outer-name import os import re diff --git a/tests/test_import_graph.py b/tests/test_import_graph.py index cebeeb64a..b5c910ab8 100644 --- a/tests/test_import_graph.py +++ b/tests/test_import_graph.py @@ -11,6 +11,7 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# pylint: disable=redefined-outer-name import os from os.path import exists diff --git a/tests/test_regr.py b/tests/test_regr.py index 7f6cc5b1a..893c9f847 100644 --- a/tests/test_regr.py +++ b/tests/test_regr.py @@ -15,6 +15,7 @@ """non regression tests for pylint, which requires a too specific configuration to be incorporated in the automatic functional test framework """ +# pylint: disable=redefined-outer-name import os import sys diff --git a/tests/unittest_pyreverse_diadefs.py b/tests/unittest_pyreverse_diadefs.py index d602fbde1..276ac7402 100644 --- a/tests/unittest_pyreverse_diadefs.py +++ b/tests/unittest_pyreverse_diadefs.py @@ -15,7 +15,7 @@ """ unit test for the extensions.diadefslib modules """ - +# pylint: disable=redefined-outer-name import sys from pathlib import Path diff --git a/tests/unittest_pyreverse_inspector.py b/tests/unittest_pyreverse_inspector.py index 068d43666..e77de2e72 100644 --- a/tests/unittest_pyreverse_inspector.py +++ b/tests/unittest_pyreverse_inspector.py @@ -9,6 +9,8 @@ """ for the visitors.diadefs module """ +# pylint: disable=redefined-outer-name + import os import astroid diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py index a4f6c9388..e1aea46e8 100644 --- a/tests/unittest_reporting.py +++ b/tests/unittest_reporting.py @@ -11,6 +11,7 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# pylint: disable=redefined-outer-name import warnings from io import StringIO |