Skip to content

Commit 15a931c

Browse files
committed
Add f_trace_opcodes API
1 parent b707c0b commit 15a931c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_with_signal_safety.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ def raise_after_instruction(target_function, target_instruction):
2121
def inject_exception(frame, event, arg):
2222
if frame.f_code is not target_code:
2323
return
24-
# TODO: Add `f_traceall` API to request tracing for every opcode
25-
# frame.f_traceall = True
24+
frame.f_trace_opcodes = True
2625
if frame.f_lasti >= target_instruction:
2726
raise InjectedException(f"Failing after {target_instruction}")
2827
return inject_exception

0 commit comments

Comments
 (0)