diff options
Diffstat (limited to 'Lib/test/test_call.py')
-rw-r--r-- | Lib/test/test_call.py | 5 |
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): |