diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-08-19 09:01:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 09:01:49 +0200 |
commit | 7ed757e2751871a7f54afc0e1534c14ee63088f7 (patch) | |
tree | ea520d50b523fe518e62efe7aed8a534a9de521e /tests/checkers | |
parent | 9cc3ffae26b049e91737fdff8dbcadb3c15b9825 (diff) | |
download | pylint-git-7ed757e2751871a7f54afc0e1534c14ee63088f7.tar.gz |
Use alias for astroid.nodes 04 (#4869)
* Use alias for astroid nodes 04
* Resolve name conflicts
* Apply suggestions from code review
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/checkers')
-rw-r--r-- | tests/checkers/unittest_stdlib.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/checkers/unittest_stdlib.py b/tests/checkers/unittest_stdlib.py index 66af27072..cfec0d4c6 100644 --- a/tests/checkers/unittest_stdlib.py +++ b/tests/checkers/unittest_stdlib.py @@ -13,6 +13,7 @@ import contextlib import astroid +from astroid import nodes from pylint.checkers import stdlib from pylint.interfaces import UNDEFINED @@ -41,13 +42,13 @@ class TestStdlibChecker(CheckerTestCase): # beats me..) def infer_func(node, context=None): # pylint: disable=unused-argument - new_node = astroid.AssignAttr() + new_node = nodes.AssignAttr() new_node.parent = node yield new_node manager = astroid.MANAGER transform = astroid.inference_tip(infer_func) - with _add_transform(manager, astroid.Name, transform): + with _add_transform(manager, nodes.Name, transform): node = astroid.extract_node( """ call_something() |