summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-07-23 10:39:51 (GMT)
committerƁukasz Langa <lukasz@langa.pl>2019-07-23 10:39:51 (GMT)
commitbf8e82f976b37856c7d35cdf88a238cb6f57fe65 (patch)
treeeef98efc9b9f0206ff2ee927e697434003405796 /Lib
parent5dab5e7d24c790d54b8d1eca0568e798bfda2c68 (diff)
downloadcpython-bf8e82f976b37856c7d35cdf88a238cb6f57fe65.zip
cpython-bf8e82f976b37856c7d35cdf88a238cb6f57fe65.tar.gz
cpython-bf8e82f976b37856c7d35cdf88a238cb6f57fe65.tar.bz2
[3.8] bpo-36974: separate vectorcall functions for each calling convention (GH-13781) (#14782)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_call.py2
-rw-r--r--Lib/test/test_gdb.py8
2 files changed, 6 insertions, 4 deletions
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py
index b252ca1..0bff7de 100644
--- a/Lib/test/test_call.py
+++ b/Lib/test/test_call.py
@@ -586,6 +586,8 @@ class TestPEP590(unittest.TestCase):
return super().__call__(*args)
calls += [
+ (dict.update, ({},), {"key":True}, None),
+ ({}.update, ({},), {"key":True}, None),
(MethodDescriptorHeap(), (0,), {}, True),
(MethodDescriptorOverridden(), (0,), {}, 'new'),
(MethodDescriptorSuper(), (0,), {}, True),
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 1c5e18b..e07d327 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -850,10 +850,10 @@ id(42)
# called, so test a variety of calling conventions.
for py_name, py_args, c_name, expected_frame_number in (
('gmtime', '', 'time_gmtime', 1), # METH_VARARGS
- ('len', '[]', 'builtin_len', 2), # METH_O
- ('locals', '', 'builtin_locals', 2), # METH_NOARGS
- ('iter', '[]', 'builtin_iter', 2), # METH_FASTCALL
- ('sorted', '[]', 'builtin_sorted', 2), # METH_FASTCALL|METH_KEYWORDS
+ ('len', '[]', 'builtin_len', 1), # METH_O
+ ('locals', '', 'builtin_locals', 1), # METH_NOARGS
+ ('iter', '[]', 'builtin_iter', 1), # METH_FASTCALL
+ ('sorted', '[]', 'builtin_sorted', 1), # METH_FASTCALL|METH_KEYWORDS
):
with self.subTest(c_name):
cmd = ('from time import gmtime\n' # (not always needed)