Skip to content

Commit 1723c76

Browse files
authored
Fix incorrect usage of support.requires_gil_enabled (#118170)
1 parent 2c45148 commit 1723c76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_capi/test_mem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class C(): pass
153153

154154

155155
# free-threading requires mimalloc (not malloc)
156-
@support.requires_gil_enabled
156+
@support.requires_gil_enabled()
157157
class PyMemMallocDebugTests(PyMemDebugTests):
158158
PYTHONMALLOC = 'malloc_debug'
159159

Lib/test/test_gdb/test_backtrace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_bt_full(self):
4949

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

0 commit comments

Comments
 (0)