Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Disable test for free-threading. Address feedback.
  • Loading branch information
diegorusso committed Jan 26, 2026
commit 815f1d26454c8e4cea36070acbd12a34d5a523cf
3 changes: 1 addition & 2 deletions Lib/test/test_frame_pointer_unwind.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def _annotate_unwind():
jit_enabled = hasattr(sys, "_jit") and sys._jit.is_enabled()
jit_backend = _testinternalcapi.get_jit_backend()
ranges = _testinternalcapi.get_jit_code_ranges() if jit_enabled else []
jit_code_ranges = len(ranges)
if jit_enabled and ranges:
print("JIT ranges:")
for start, end in ranges:
Expand All @@ -113,7 +112,6 @@ def _annotate_unwind():
"python_frames": python_frames,
"jit_frames": jit_frames,
"other_frames": other_frames,
"jit_code_ranges": jit_code_ranges,
"jit_backend": jit_backend,
})

Expand Down Expand Up @@ -149,6 +147,7 @@ def _manual_unwind_length(**env):
) from exc


@support.requires_gil_enabled("test requires the GIL enabled")
@unittest.skipIf(support.is_wasi, "test not supported on WASI")
class FramePointerUnwindTests(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion Modules/_testinternalcapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ manual_unwind_from_fp(uintptr_t *frame_pointer)
Py_DECREF(addr_obj);

uintptr_t *next_fp = (uintptr_t *)frame_pointer[0];
// Stop if the the frame pointer is extremely low.
// Stop if the frame pointer is extremely low.
if ((uintptr_t)next_fp < 0x1000) {
Comment thread
diegorusso marked this conversation as resolved.
Outdated
break;
}
Expand Down
Loading