mirror of https://github.com/python/cpython
Fix incorrect usage of ``support.requires_gil_enabled`` (#118170)
This commit is contained in:
parent
2c45148912
commit
1723c76d79
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue