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 PyMemDebugTests(unittest.TestCase):
# 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 @@ Traceback \(most recent call first\):
@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'