summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-21 00:38:56 +0100
committerGitHub <noreply@github.com>2023-03-20 23:38:56 +0000
commitadc0bc2392937e17cd74ef695933c155c6f46d49 (patch)
tree53f8ce936f955f9b61e4815e1c3aa74ca4d27683 /tests
parent026a564c500b1cc688a252d1b454c8dc018d3fd6 (diff)
downloadpylint-git-adc0bc2392937e17cd74ef695933c155c6f46d49.tar.gz
[test] Removes 'test_pylint_config_attr' (#8468)
See fc0ed97, it's not relevant anymore.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_regr.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/test_regr.py b/tests/test_regr.py
index eb8ad6c5d..599b258ad 100644
--- a/tests/test_regr.py
+++ b/tests/test_regr.py
@@ -16,7 +16,6 @@ from collections.abc import Callable, Iterator
from os.path import abspath, dirname, join
from typing import cast
-import astroid
import pytest
from pylint import testutils
@@ -122,28 +121,6 @@ def test_check_package___init__(finalize_linter: PyLinter) -> None:
assert checked == ["__init__"]
-# TODO: 3.0: Test are broken because of property shenanigans of config attribute
-# Re-enable after some of the old attributes have been removed after deprecation period
-@pytest.mark.xfail
-def test_pylint_config_attr() -> None:
- mod = astroid.MANAGER.ast_from_module_name("pylint.lint.pylinter")
- pylinter = mod["PyLinter"]
- expect = [
- "_ArgumentsManager",
- "object",
- "ReportsHandlerMixIn",
- "BaseTokenChecker",
- "BaseChecker",
- "_ArgumentsProvider",
- ]
- assert [c.name for c in pylinter.ancestors()] == expect
- assert list(astroid.Instance(pylinter).getattr("config"))
- inferred = list(astroid.Instance(pylinter).igetattr("config"))
- assert len(inferred) >= 1
- assert inferred[0].root().name == "argparse"
- assert inferred[0].name == "Namespace"
-
-
@pytest.mark.timeout(30)
@pytest.mark.parametrize("file_names", ([join(REGR_DATA, "hang", "pkg4972.string")],))
def test_hang(finalize_linter: PyLinter, file_names: list[str]) -> None: