Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Lib/test/test_external_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2041,6 +2041,14 @@ def leaf(depth):
except RuntimeError:
continue
break
# The unwinder can attach before the main loop starts.
_get_stack_trace_with_retry(
unwinder,
condition=lambda trace: trace[0].threads and any(
frame.funcname == "leaf"
for frame in trace[0].threads[0].frame_info
),
)
samples = 0
for _ in range(10_000):
try:
Expand Down
Loading