summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-17 23:53:00 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-18 18:00:12 +0200
commit9f041cf56372720441ff36a9a185d324f2e3703e (patch)
treea2aa44440370511b77a8d4b893d048ba01bb2113
parentf047bdacdf6120e06ec7c733d95aad9757fabedb (diff)
downloadastroid-git-9f041cf56372720441ff36a9a185d324f2e3703e.tar.gz
Remove useless-suppression for no-member that disappeared
-rw-r--r--astroid/manager.py1
-rw-r--r--tests/unittest_manager.py4
-rw-r--r--tests/unittest_raw_building.py4
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"]