summaryrefslogtreecommitdiff
path: root/tests/test_regr.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_regr.py')
-rw-r--r--tests/test_regr.py27
1 files changed, 2 insertions, 25 deletions
diff --git a/tests/test_regr.py b/tests/test_regr.py
index eb8ad6c5d..d92742943 100644
--- a/tests/test_regr.py
+++ b/tests/test_regr.py
@@ -1,6 +1,6 @@
# 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
+# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt
"""Non regression tests for pylint, which requires a too specific configuration
to be incorporated in the automatic functional test framework
@@ -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: