diff options
author | Jeroen Demeyer <J.Demeyer@UGent.be> | 2019-06-24 10:41:05 (GMT) |
---|---|---|
committer | Petr Viktorin <encukou@gmail.com> | 2019-06-24 10:41:05 (GMT) |
commit | a8b27e623d75377aabe50df27e97cab4e81a174a (patch) | |
tree | 91879278e60ec4e8c6a35f2688aa60cdb2a59a8a /Lib/test/test_call.py | |
parent | 47fbc4e45b35b3111e2d947a66490a43ac21d363 (diff) | |
download | cpython-a8b27e623d75377aabe50df27e97cab4e81a174a.zip cpython-a8b27e623d75377aabe50df27e97cab4e81a174a.tar.gz cpython-a8b27e623d75377aabe50df27e97cab4e81a174a.tar.bz2 |
bpo-36974: inherit tp_vectorcall_offset unconditionally (GH-13858)
Diffstat (limited to 'Lib/test/test_call.py')
-rw-r--r-- | Lib/test/test_call.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py index b4ab749..b252ca1 100644 --- a/Lib/test/test_call.py +++ b/Lib/test/test_call.py @@ -577,9 +577,18 @@ class TestPEP590(unittest.TestCase): def __call__(self, n): return 'new' + class SuperBase: + def __call__(self, *args): + return super().__call__(*args) + + class MethodDescriptorSuper(SuperBase, _testcapi.MethodDescriptorBase): + def __call__(self, *args): + return super().__call__(*args) + calls += [ (MethodDescriptorHeap(), (0,), {}, True), (MethodDescriptorOverridden(), (0,), {}, 'new'), + (MethodDescriptorSuper(), (0,), {}, True), ] for (func, args, kwargs, expected) in calls: |