Skip to content

Commit 815f1d2

Browse files
committed
Disable test for free-threading. Address feedback.
1 parent c179848 commit 815f1d2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Lib/test/test_frame_pointer_unwind.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def _annotate_unwind():
9898
jit_enabled = hasattr(sys, "_jit") and sys._jit.is_enabled()
9999
jit_backend = _testinternalcapi.get_jit_backend()
100100
ranges = _testinternalcapi.get_jit_code_ranges() if jit_enabled else []
101-
jit_code_ranges = len(ranges)
102101
if jit_enabled and ranges:
103102
print("JIT ranges:")
104103
for start, end in ranges:
@@ -113,7 +112,6 @@ def _annotate_unwind():
113112
"python_frames": python_frames,
114113
"jit_frames": jit_frames,
115114
"other_frames": other_frames,
116-
"jit_code_ranges": jit_code_ranges,
117115
"jit_backend": jit_backend,
118116
})
119117

@@ -149,6 +147,7 @@ def _manual_unwind_length(**env):
149147
) from exc
150148

151149

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

Modules/_testinternalcapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ manual_unwind_from_fp(uintptr_t *frame_pointer)
367367
Py_DECREF(addr_obj);
368368

369369
uintptr_t *next_fp = (uintptr_t *)frame_pointer[0];
370-
// Stop if the the frame pointer is extremely low.
370+
// Stop if the frame pointer is extremely low.
371371
if ((uintptr_t)next_fp < 0x1000) {
372372
break;
373373
}

0 commit comments

Comments
 (0)