[3.11] GH-102818: Do not call PyTraceBack_Here in sys.settrace trampoline (GH-104650)

Backport of GH-104579
This commit is contained in:
Mark Shannon 2023-05-19 19:08:43 +01:00 committed by GitHub
parent 667e4ece98
commit 7b3bc95067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 89 additions and 4 deletions

View file

@ -950,10 +950,6 @@ call_trampoline(PyThreadState *tstate, PyObject* callback,
PyObject *result = _PyObject_FastCallTstate(tstate, callback, stack, 3);
PyFrame_LocalsToFast(frame, 1);
if (result == NULL) {
PyTraceBack_Here(frame);
}
return result;
}