You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement trace/profile events and opcode tracing for generators (RustPython#7268)
- Add TraceEvent::Exception and Opcode variants with profile filtering
- Extract dispatch_traced_frame helper for Call/Return trace events
- Fire exception trace on new raises, SEND StopIteration, FOR_ITER StopIteration
- Fire opcode trace events gated by f_trace_opcodes
- Move prev_line to FrameState for persistence across generator suspend/resume
- Reset prev_line in gen_throw for correct LINE monitoring after yield
- Add per-code event mask (events_for_code) to prevent unrelated code instrumentation
- Remove expectedFailure markers from test_bdb (5) and test_sys_setprofile (14)
@unittest.expectedFailure# TODO: RUSTPYTHON; AssertionError: All paired tuples have not been processed, the last one was number 1 [('next',), ('quit',)]
618
617
deftest_stepinstr(self):
619
618
self.expect_set= [
620
619
('line', 2, 'tfunc_main'), ('stepinstr', ),
@@ -1084,7 +1083,6 @@ def func():
1084
1083
withTracerRun(self) astracer:
1085
1084
tracer.runcall(tfunc_import)
1086
1085
1087
-
@unittest.expectedFailure# TODO: RUSTPYTHON; Error in atexit._run_exitfuncs
1088
1086
deftest_next_until_return_in_generator(self):
1089
1087
# Issue #16596.
1090
1088
# Check that set_next(), set_until() and set_return() do not treat the
@@ -1126,7 +1124,6 @@ def main():
1126
1124
withTracerRun(self) astracer:
1127
1125
tracer.runcall(tfunc_import)
1128
1126
1129
-
@unittest.expectedFailure# TODO: RUSTPYTHON; Error in atexit._run_exitfuncs
1130
1127
deftest_next_command_in_generator_for_loop(self):
1131
1128
# Issue #16596.
1132
1129
code="""
@@ -1158,7 +1155,6 @@ def main():
1158
1155
withTracerRun(self) astracer:
1159
1156
tracer.runcall(tfunc_import)
1160
1157
1161
-
@unittest.expectedFailure# TODO: RUSTPYTHON; Error in atexit._run_exitfuncs
0 commit comments