summaryrefslogtreecommitdiff
path: root/tests/config
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-03-09 11:51:17 +0100
committerGitHub <noreply@github.com>2023-03-09 11:51:17 +0100
commitb2ab82a1daed9a9cc2062272e15dee7e6648e6b6 (patch)
treeab934b750020be616d4a1ed90084ce751cedd86b /tests/config
parent0db9441a6f6675bfe1a82d6770a8cef72a7f0d22 (diff)
downloadpylint-git-b2ab82a1daed9a9cc2062272e15dee7e6648e6b6.tar.gz
Remove deprecated functions and classes (#8409)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/config')
-rw-r--r--tests/config/test_deprecations.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/config/test_deprecations.py b/tests/config/test_deprecations.py
deleted file mode 100644
index 052ade9df..000000000
--- a/tests/config/test_deprecations.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
-# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
-# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
-
-"""Test for deprecation warnings in the config module."""
-
-
-import pytest
-
-from pylint.checkers import BaseChecker
-from pylint.lint import PyLinter
-from pylint.utils import get_global_option
-
-
-class SampleChecker(BaseChecker):
- options = (("test-opt", {"action": "store_true", "help": "help message"}),)
-
-
-class TestDeprecationArgumentsManager:
- """Tests for deprecation warnings in the ArgumentsManager class."""
-
- linter = PyLinter()
-
- @classmethod
- def setup_class(cls) -> None:
- checker = SampleChecker(cls.linter)
- cls.linter.register_checker(checker)
-
- def test_get_global_option(self) -> None:
- """Test that get_global_option emits a DeprecationWarning."""
- checker = BaseChecker(self.linter)
- with pytest.warns(DeprecationWarning):
- get_global_option(checker, "test-opt") # type: ignore[call-overload]