diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-17 23:53:00 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-18 18:00:12 +0200 |
commit | 9f041cf56372720441ff36a9a185d324f2e3703e (patch) | |
tree | a2aa44440370511b77a8d4b893d048ba01bb2113 | |
parent | f047bdacdf6120e06ec7c733d95aad9757fabedb (diff) | |
download | astroid-git-9f041cf56372720441ff36a9a185d324f2e3703e.tar.gz |
Remove useless-suppression for no-member that disappeared
-rw-r--r-- | astroid/manager.py | 1 | ||||
-rw-r--r-- | tests/unittest_manager.py | 4 | ||||
-rw-r--r-- | tests/unittest_raw_building.py | 4 |
3 files changed, 2 insertions, 7 deletions
diff --git a/astroid/manager.py b/astroid/manager.py index e2a66d96..9ed53e34 100644 --- a/astroid/manager.py +++ b/astroid/manager.py @@ -141,7 +141,6 @@ class AstroidManager: def ast_from_module_name(self, modname, context_file=None): """given a module name, return the astroid object""" - # pylint: disable=no-member if modname in self.astroid_cache: return self.astroid_cache[modname] if modname == "__main__": diff --git a/tests/unittest_manager.py b/tests/unittest_manager.py index 3ef0c84d..cd27b537 100644 --- a/tests/unittest_manager.py +++ b/tests/unittest_manager.py @@ -236,9 +236,7 @@ class AstroidManagerTest( """check if the unittest filepath is equals to the result of the method""" self.assertEqual( _get_file_from_object(unittest), - self.manager.file_from_module_name( # pylint: disable=no-member - "unittest", None - ).location, + self.manager.file_from_module_name("unittest", None).location, ) def test_file_from_module_name_astro_building_exception(self): diff --git a/tests/unittest_raw_building.py b/tests/unittest_raw_building.py index a640d940..e51eac9d 100644 --- a/tests/unittest_raw_building.py +++ b/tests/unittest_raw_building.py @@ -52,7 +52,6 @@ class RawBuildingTC(unittest.TestCase): def test_build_function_args(self): args = ["myArgs1", "myArgs2"] - # pylint: disable=no-member node = build_function("MyFunction", args) self.assertEqual("myArgs1", node.args.args[0].name) self.assertEqual("myArgs2", node.args.args[1].name) @@ -60,13 +59,12 @@ class RawBuildingTC(unittest.TestCase): def test_build_function_defaults(self): defaults = ["defaults1", "defaults2"] - # pylint: disable=no-member node = build_function(name="MyFunction", args=None, defaults=defaults) self.assertEqual(2, len(node.args.defaults)) def test_build_function_posonlyargs(self): node = build_function(name="MyFunction", posonlyargs=["a", "b"]) - self.assertEqual(2, len(node.args.posonlyargs)) # pylint: disable=no-member + self.assertEqual(2, len(node.args.posonlyargs)) def test_build_from_import(self): names = ["exceptions, inference, inspector"] |