summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2023-04-15 08:59:21 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2023-04-16 11:39:56 -0400
commit2e2b3596f8b408063766336a6d7660bfb4994815 (patch)
tree13ccc41d003d1fc3168c9c37fdf5c93b7bc91e53
parentb807a2508075e04e5f8dc9459e5576d3ca5bc47c (diff)
downloadpylint-git-2e2b3596f8b408063766336a6d7660bfb4994815.tar.gz
Cope with changes to `AssignAttr` constructor
-rw-r--r--tests/checkers/unittest_stdlib.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/checkers/unittest_stdlib.py b/tests/checkers/unittest_stdlib.py
index 156248434..df0bcfd51 100644
--- a/tests/checkers/unittest_stdlib.py
+++ b/tests/checkers/unittest_stdlib.py
@@ -48,7 +48,14 @@ class TestStdlibChecker(CheckerTestCase):
inner_node: nodes.Name,
context: InferenceContext | None = None, # pylint: disable=unused-argument
) -> Iterator[nodes.AssignAttr]:
- new_node = nodes.AssignAttr(attrname="alpha", parent=inner_node)
+ new_node = nodes.AssignAttr(
+ attrname="alpha",
+ parent=inner_node,
+ lineno=0,
+ col_offset=0,
+ end_lineno=0,
+ end_col_offset=0,
+ )
yield new_node
manager = astroid.MANAGER