From b86bdf14793362740a10e7cd46964ac6ce351eaf Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 18 Apr 2021 22:43:51 +0200 Subject: Fix redefining name 'astroid' from outer scope --- tests/unittest_nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unittest_nodes.py b/tests/unittest_nodes.py index a58f1ba0..fb9ffc25 100644 --- a/tests/unittest_nodes.py +++ b/tests/unittest_nodes.py @@ -1166,8 +1166,8 @@ def test_correct_function_type_comment_parent(): # type: (A) -> A pass """ - astroid = builder.parse(data) - f = astroid.body[0] + parsed_data = builder.parse(data) + f = parsed_data.body[0] assert f.type_comment_args[0].parent is f assert f.type_comment_returns.parent is f -- cgit v1.2.1