Skip to content

Commit 3aa402a

Browse files
committed
gh-117474: Skip GIL test in free-threaded build
In the free-threaded build, the GIL will typically be disabled so py-bt will not show threads waiting on the GIL.
1 parent 027fa2e commit 3aa402a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_gdb/test_backtrace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def test_bt_full(self):
4949

5050
@unittest.skipIf(python_is_optimized(),
5151
"Python was compiled with optimizations")
52+
@unittest.skipIf(support.Py_GIL_DISABLED, "test requires the GIL")
5253
@support.requires_resource('cpu')
5354
def test_threads(self):
5455
'Verify that "py-bt" indicates threads that are waiting for the GIL'

0 commit comments

Comments
 (0)