diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checkers/unittest_deprecated.py | 1 | ||||
-rw-r--r-- | tests/checkers/unittest_format.py | 1 | ||||
-rw-r--r-- | tests/lint/unittest_lint.py | 1 | ||||
-rw-r--r-- | tests/test_self.py | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/checkers/unittest_deprecated.py b/tests/checkers/unittest_deprecated.py index b02992e99..d34150247 100644 --- a/tests/checkers/unittest_deprecated.py +++ b/tests/checkers/unittest_deprecated.py @@ -53,6 +53,7 @@ class _DeprecatedChecker(DeprecatedMixin, BaseChecker): return {".deprecated_decorator"} +# pylint: disable-next = too-many-public-methods class TestDeprecatedChecker(CheckerTestCase): CHECKER_CLASS = _DeprecatedChecker diff --git a/tests/checkers/unittest_format.py b/tests/checkers/unittest_format.py index 9a34429ee..fd0699daa 100644 --- a/tests/checkers/unittest_format.py +++ b/tests/checkers/unittest_format.py @@ -165,6 +165,7 @@ def test_disable_global_option_end_of_line() -> None: 1 """ ) + # pylint: disable = too-many-try-statements try: linter = lint.PyLinter() checker = BasicChecker(linter) diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py index 8e117f363..619c5fe12 100644 --- a/tests/lint/unittest_lint.py +++ b/tests/lint/unittest_lint.py @@ -979,6 +979,7 @@ def test_pylintrc() -> None: with fake_home(): current_dir = getcwd() chdir(os.path.dirname(os.path.abspath(sys.executable))) + # pylint: disable = too-many-try-statements try: with pytest.warns(DeprecationWarning): assert config.find_pylintrc() is None diff --git a/tests/test_self.py b/tests/test_self.py index 076f2a22f..ca7b0b6c3 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -781,6 +781,7 @@ a.py:1:4: E0001: Parsing failed: 'invalid syntax (<unknown>, line 1)' (syntax-er @staticmethod def test_modify_sys_path() -> None: + # pylint: disable = too-many-statements cwd = "/tmp/pytest-of-root/pytest-0/test_do_not_import_files_from_0" default_paths = [ "/usr/local/lib/python39.zip", |