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:
Armin Rigo 2005-09-20 18:50:13 +00:00
parent 630db60a55
commit f879024487
2 changed files with 22 additions and 3 deletions

View file

@ -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,
}