aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_call.py
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-08-08 14:12:05 +0200
committerGitHub <noreply@github.com>2022-08-08 14:12:05 +0200
commit656dad702d3b25bf678ee9bd7109d98876946258 (patch)
treed532248aca4a64f0ad9fb431f34398c1afc05ff5 /Lib/test/test_call.py
parentcc9160a29bc3356ced92348bcd8e6668c67167c9 (diff)
downloadcpython-656dad702d3b25bf678ee9bd7109d98876946258.tar.gz
cpython-656dad702d3b25bf678ee9bd7109d98876946258.zip
gh-93274: Expose receiving vectorcall in the Limited API (GH-95717)
Diffstat (limited to 'Lib/test/test_call.py')
-rw-r--r--Lib/test/test_call.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py
index 6c81a154f65..d3a254f15b6 100644
--- a/Lib/test/test_call.py
+++ b/Lib/test/test_call.py
@@ -759,6 +759,11 @@ class TestPEP590(unittest.TestCase):
self.assertEqual(expected, meth(*args1, **kwargs))
self.assertEqual(expected, wrapped(*args, **kwargs))
+ def test_vectorcall_limited(self):
+ from _testcapi import pyobject_vectorcall
+ obj = _testcapi.LimitedVectorCallClass()
+ self.assertEqual(pyobject_vectorcall(obj, (), ()), "vectorcall called")
+
class A:
def method_two_args(self, x, y):