Commit Graph

9 Commits

Author SHA1 Message Date
Jeong, YunWon
dd6cf74fd7 Implement trace/profile events and opcode tracing for generators (#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)
2026-03-01 13:18:37 +09:00
Jeong, YunWon
754fc85fb8 Fix trace_event to return trace function result
- Return trace function's return value from trace_event()
  to support per-frame f_trace assignment
- Match CPython's trace_trampoline: set f_trace from call
  event return value, clear on error
- Fire return event only when frame is traced or profiled
- Remove expectedFailure from passing bdb/settrace tests
2026-02-28 12:09:59 +09:00
CPython Developers
78c5a2ec28 Update bdb from v3.14.3 2026-02-28 12:09:59 +09:00
Jeong, YunWon
4567c689ce Unmark successful tests
test_peepholer
test_bdb
2026-02-27 09:07:23 +09:00
Terry Tianlin Luan
609dbb1439 Downgraded skips in tests (#6716)
* Downgraded skips in tests

* Fixed failing tests

* Fixed test_ftplib + test_socket + test_ssl + test_threaded_import failures

* Removed comments about which tests are run in which environment

* Addressed PR comments

* Annotated skips on failing tests

* Removed unneeded tests

* Removed unneeded sys import from test_ftplib

* Added annotation to test_ftplib

* Readded skipIf to test_cleanup_with_symlink_modes with a more general ENV_POLLUTING_TESTS_WINDOWS

* Addressed PR comments

* Made changes to minimize diff in PR

* Apply suggestion from @youknowone

---------

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
2026-01-15 21:43:22 +09:00
Terry Tianlin Luan
6bd1d90b6a Updated bdb.py + test_bdb.py (#6593)
* Updated bdb.py + test_bdb.py

* Double checked test_bdb.py with the script
2025-12-30 16:35:58 +09:00
NakanoMiku
dd0c393b45 Update test_bdb.py from CPython v3.12.0 2023-12-24 04:03:20 +08:00
Padraic Fanning
c7b24b9bd8 Skip tests that don't work in a clean workspace 2022-04-26 21:35:38 -04:00
Padraic Fanning
24bb2f8850 Add test_bdb.py from CPython 3.10 2022-04-26 21:07:06 -04:00