mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
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.
This commit is contained in:
parent
434bc593df
commit
63998a1347
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ Traceback \(most recent call first\):
|
||||||
|
|
||||||
@unittest.skipIf(python_is_optimized(),
|
@unittest.skipIf(python_is_optimized(),
|
||||||
"Python was compiled with optimizations")
|
"Python was compiled with optimizations")
|
||||||
|
@support.requires_gil_enabled
|
||||||
@support.requires_resource('cpu')
|
@support.requires_resource('cpu')
|
||||||
def test_threads(self):
|
def test_threads(self):
|
||||||
'Verify that "py-bt" indicates threads that are waiting for the GIL'
|
'Verify that "py-bt" indicates threads that are waiting for the GIL'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue