summaryrefslogtreecommitdiff
path: root/tests/test_regr.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-12 13:40:23 +0200
committerGitHub <noreply@github.com>2022-04-12 13:40:23 +0200
commitcd83ef4e5e4ae9576190e11b02bd0bc83a070ca5 (patch)
tree59d3af1322cb5fbe39fded035b428758a4760640 /tests/test_regr.py
parent5c112dd133d954f6334602d88d14a6fe546c35e3 (diff)
downloadpylint-git-cd83ef4e5e4ae9576190e11b02bd0bc83a070ca5.tar.gz
Deprecate ``BaseChecker.config`` (#6278)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/test_regr.py')
-rw-r--r--tests/test_regr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_regr.py b/tests/test_regr.py
index dd0a27133..4c7a64a93 100644
--- a/tests/test_regr.py
+++ b/tests/test_regr.py
@@ -132,9 +132,9 @@ def test_pylint_config_attr() -> None:
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 == "optparse"
- assert inferred[0].name == "Values"
+ assert len(inferred) >= 1
+ assert inferred[0].root().name == "argparse"
+ assert inferred[0].name == "Namespace"
@pytest.mark.timeout(30)