Fix incorrect usage of `support.requires_gil_enabled` (#118170)

This commit is contained in:
Kirill Podoprigora 2024-04-25 18:11:59 +03:00 committed by GitHub
parent 2c45148912
commit 1723c76d79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ class C(): pass
# free-threading requires mimalloc (not malloc)
@support.requires_gil_enabled
@support.requires_gil_enabled()
class PyMemMallocDebugTests(PyMemDebugTests):
PYTHONMALLOC = 'malloc_debug'

View file

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