diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2023-03-09 11:51:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 11:51:17 +0100 |
commit | b2ab82a1daed9a9cc2062272e15dee7e6648e6b6 (patch) | |
tree | ab934b750020be616d4a1ed90084ce751cedd86b /tests/checkers | |
parent | 0db9441a6f6675bfe1a82d6770a8cef72a7f0d22 (diff) | |
download | pylint-git-b2ab82a1daed9a9cc2062272e15dee7e6648e6b6.tar.gz |
Remove deprecated functions and classes (#8409)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/checkers')
-rw-r--r-- | tests/checkers/unittest_utils.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/checkers/unittest_utils.py b/tests/checkers/unittest_utils.py index b2cbcb590..231fed555 100644 --- a/tests/checkers/unittest_utils.py +++ b/tests/checkers/unittest_utils.py @@ -11,7 +11,6 @@ import pytest from astroid import nodes from pylint.checkers import utils -from pylint.checkers.base_checker import BaseChecker @pytest.mark.parametrize( @@ -469,30 +468,6 @@ def test_is_empty_literal() -> None: assert not utils.is_empty_str_literal(not_empty_string_node.value) -def test_deprecation_is_inside_lambda() -> None: - """Test that is_inside_lambda is throwing a DeprecationWarning.""" - with pytest.warns(DeprecationWarning) as records: - utils.is_inside_lambda(nodes.NodeNG()) - assert len(records) == 1 - - -def test_deprecation_check_messages() -> None: - with pytest.warns(DeprecationWarning) as records: - - class Checker(BaseChecker): # pylint: disable=unused-variable - @utils.check_messages("my-message") - def visit_assname(self, node: nodes.NodeNG) -> None: - pass - - deprecationMessage = ( - "utils.check_messages will be removed in " - "favour of calling utils.only_required_for_messages in pylint 3.0" - ) - - assert len(records) == 1 - assert records[0].message.args[0] == deprecationMessage - - def test_is_typing_member() -> None: code = astroid.extract_node( """ |