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:
Sam Gross 2024-04-04 16:27:14 -04:00 committed by GitHub
parent 434bc593df
commit 63998a1347
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,7 @@ Traceback \(most recent call first\):
@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'