Skip to content

Commit

Permalink
pythongh-117474: Skip GIL test in free-threaded build (python#117475)
Browse files Browse the repository at this point in the history
In the free-threaded build, the GIL will typically be disabled so
`py-bt` will not show threads waiting on the GIL.
  • Loading branch information
colesbury authored and diegorusso committed Apr 17, 2024
1 parent 4d0f557 commit 5f4c470
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_gdb/test_backtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def test_bt_full(self):

@unittest.skipIf(python_is_optimized(),
"Python was compiled with optimizations")
@support.requires_gil_enabled
@support.requires_resource('cpu')
def test_threads(self):
'Verify that "py-bt" indicates threads that are waiting for the GIL'
Expand Down

0 comments on commit 5f4c470

Please sign in to comment.