mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
test and fix for buggy handling of exceptions raised by C functions,
causing the profiler to crash on an AssertionError if the same Python function catches multiple exceptions from C functions.
This commit is contained in:
parent
630db60a55
commit
f879024487
2 changed files with 22 additions and 3 deletions
|
@ -368,7 +368,7 @@ class Profile:
|
|||
"exception": trace_dispatch_exception,
|
||||
"return": trace_dispatch_return,
|
||||
"c_call": trace_dispatch_c_call,
|
||||
"c_exception": trace_dispatch_exception,
|
||||
"c_exception": trace_dispatch_return, # the C function returned
|
||||
"c_return": trace_dispatch_return,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue