gh-106023: Remove _PyObject_FastCall() function (#106265)

This commit is contained in:
Victor Stinner 2023-06-30 11:46:43 +02:00 committed by GitHub
parent 0b51463862
commit 2efdd2a14e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 51 deletions

View file

@ -729,13 +729,13 @@ class PyListTests(DebuggerTests):
SAMPLE_WITH_C_CALL = """
from _testcapi import pyobject_fastcall
from _testcapi import pyobject_vectorcall
def foo(a, b, c):
bar(a, b, c)
def bar(a, b, c):
pyobject_fastcall(baz, (a, b, c))
pyobject_vectorcall(baz, (a, b, c), None)
def baz(*args):
id(42)
@ -756,7 +756,7 @@ class StackNavigationTests(DebuggerTests):
self.assertMultilineMatches(bt,
r'''^.*
#[0-9]+ Frame 0x-?[0-9a-f]+, for file <string>, line 12, in baz \(args=\(1, 2, 3\)\)
#[0-9]+ <built-in method pyobject_fastcall of module object at remote 0x[0-9a-f]+>
#[0-9]+ <built-in method pyobject_vectorcall of module object at remote 0x[0-9a-f]+>
$''')
@unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
@ -785,7 +785,7 @@ $''')
self.assertMultilineMatches(bt,
r'''^.*
#[0-9]+ Frame 0x-?[0-9a-f]+, for file <string>, line 12, in baz \(args=\(1, 2, 3\)\)
#[0-9]+ <built-in method pyobject_fastcall of module object at remote 0x[0-9a-f]+>
#[0-9]+ <built-in method pyobject_vectorcall of module object at remote 0x[0-9a-f]+>
#[0-9]+ Frame 0x-?[0-9a-f]+, for file <string>, line 12, in baz \(args=\(1, 2, 3\)\)
$''')