From: Kirill Podoprigora Date: Thu, 25 Apr 2024 15:11:59 +0000 (+0300) Subject: Fix incorrect usage of ``support.requires_gil_enabled`` (#118170) X-Git-Tag: v3.13.0b1~267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1723c76d794bef23b518bc79d83281c7309d4832;p=thirdparty%2FPython%2Fcpython.git Fix incorrect usage of ``support.requires_gil_enabled`` (#118170) --- diff --git a/Lib/test/test_capi/test_mem.py b/Lib/test/test_capi/test_mem.py index 296601e8ee4f..6ab7b685c2e1 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 fe67bf9ecc88..714853c7b473 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'