mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix incorrect usage of `support.requires_gil_enabled
` (#118170)
This commit is contained in:
parent
2c45148912
commit
1723c76d79
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue