summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-04-25 15:11:59 (GMT)
committerGitHub <noreply@github.com>2024-04-25 15:11:59 (GMT)
commit1723c76d794bef23b518bc79d83281c7309d4832 (patch)
tree06bdc18ab421671ce6403c28cff70eb6d8bc5c89
parent2c451489122d539080c8d674b391dedc1dedcb53 (diff)
downloadcpython-1723c76d794bef23b518bc79d83281c7309d4832.zip
cpython-1723c76d794bef23b518bc79d83281c7309d4832.tar.gz
cpython-1723c76d794bef23b518bc79d83281c7309d4832.tar.bz2
Fix incorrect usage of ``support.requires_gil_enabled`` (#118170)
-rw-r--r--Lib/test/test_capi/test_mem.py2
-rw-r--r--Lib/test/test_gdb/test_backtrace.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_capi/test_mem.py b/Lib/test/test_capi/test_mem.py
index 296601e..6ab7b68 100644
--- a/Lib/test/test_capi/test_mem.py
+++ b/Lib/test/test_capi/test_mem.py
@@ -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'
diff --git a/Lib/test/test_gdb/test_backtrace.py b/Lib/test/test_gdb/test_backtrace.py
index fe67bf9..714853c 100644
--- a/Lib/test/test_gdb/test_backtrace.py
+++ b/Lib/test/test_gdb/test_backtrace.py
@@ -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'