diff --git a/tests/unittest_scoped_nodes.py b/tests/unittest_scoped_nodes.py index 2eb43871a7..c644080fec 100644 --- a/tests/unittest_scoped_nodes.py +++ b/tests/unittest_scoped_nodes.py @@ -267,10 +267,10 @@ def test_file_stream_physical(self): def test_file_stream_api(self): path = resources.find("data/all.py") - astroid = builder.AstroidBuilder().file_build(path, "all") + file_build = builder.AstroidBuilder().file_build(path, "all") with self.assertRaises(AttributeError): - # pylint: disable=pointless-statement,no-member - astroid.file_stream + # pylint: disable=pointless-statement + file_build.file_stream def test_stream_api(self): path = resources.find("data/all.py")