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

Skip to content

Commit 63998a1

Browse files
authored
gh-117474: Skip GIL test in free-threaded build (#117475)
In the free-threaded build, the GIL will typically be disabled so `py-bt` will not show threads waiting on the GIL.
1 parent 434bc59 commit 63998a1

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+
@support.requires_gil_enabled
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)