mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-123465: Allow Py_RELATIVE_OFFSET for __*offset__ members (GH-123474)
This commit is contained in:
parent
ce9f84a47b
commit
16be8db6be
8 changed files with 422 additions and 74 deletions
|
@ -851,8 +851,13 @@ class TestPEP590(unittest.TestCase):
|
|||
@requires_limited_api
|
||||
def test_vectorcall_limited_incoming(self):
|
||||
from _testcapi import pyobject_vectorcall
|
||||
obj = _testlimitedcapi.LimitedVectorCallClass()
|
||||
self.assertEqual(pyobject_vectorcall(obj, (), ()), "vectorcall called")
|
||||
for cls in (_testlimitedcapi.LimitedVectorCallClass,
|
||||
_testlimitedcapi.LimitedRelativeVectorCallClass):
|
||||
with self.subTest(cls=cls):
|
||||
obj = cls()
|
||||
self.assertEqual(
|
||||
pyobject_vectorcall(obj, (), ()),
|
||||
"vectorcall called")
|
||||
|
||||
@requires_limited_api
|
||||
def test_vectorcall_limited_outgoing(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue