summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel van Noord <13665637+DanielNoord@users.noreply.github.com>2023-04-25 13:32:28 +0200
committerDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2023-04-25 13:52:45 +0200
commitf13b247d617de36f44d7e825566f134174723c28 (patch)
tree2bed6354c5e96263f2cdbca0adda8d7dad6c47d4 /tests
parent82f62c26038b12466e075a235427f73d073f8362 (diff)
downloadastroid-git-f13b247d617de36f44d7e825566f134174723c28.tar.gz
Fix the signature of ``infer_call_result``
Diffstat (limited to 'tests')
-rw-r--r--tests/test_scoped_nodes.py2
-rw-r--r--tests/test_transforms.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_scoped_nodes.py b/tests/test_scoped_nodes.py
index 9f409582..e169dc66 100644
--- a/tests/test_scoped_nodes.py
+++ b/tests/test_scoped_nodes.py
@@ -1986,7 +1986,7 @@ class ClassNodeTest(ModuleLoader, unittest.TestCase):
"""
)
assert isinstance(func, nodes.FunctionDef)
- result = next(func.infer_call_result())
+ result = next(func.infer_call_result(None))
self.assertIsInstance(result, Generator)
self.assertEqual(result.parent, func)
diff --git a/tests/test_transforms.py b/tests/test_transforms.py
index fd9aeb62..59aaf210 100644
--- a/tests/test_transforms.py
+++ b/tests/test_transforms.py
@@ -164,7 +164,7 @@ class TestTransforms(unittest.TestCase):
for decorator in node.decorators.nodes:
inferred = next(decorator.infer())
if inferred.qname() == "abc.abstractmethod":
- return next(node.infer_call_result())
+ return next(node.infer_call_result(None))
return None
manager = MANAGER