From ac55d5e70578dc3cd7a2c80c3206c3453b69a4ae Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 19 Apr 2021 08:54:52 +0200 Subject: [PATCH] Fix useless suppression of no-member --- tests/unittest_scoped_nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")