diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-12 13:40:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 13:40:23 +0200 |
commit | cd83ef4e5e4ae9576190e11b02bd0bc83a070ca5 (patch) | |
tree | 59d3af1322cb5fbe39fded035b428758a4760640 /tests/test_regr.py | |
parent | 5c112dd133d954f6334602d88d14a6fe546c35e3 (diff) | |
download | pylint-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.py | 6 |
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) |