]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix incorrect usage of ``support.requires_gil_enabled`` (#118170)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Thu, 25 Apr 2024 15:11:59 +0000 (18:11 +0300)
committerGitHub <noreply@github.com>
Thu, 25 Apr 2024 15:11:59 +0000 (11:11 -0400)
Lib/test/test_capi/test_mem.py
Lib/test/test_gdb/test_backtrace.py

index 296601e8ee4f5f74f17d19f2aa6282badc7d565f..6ab7b685c2e18bd04e1f8e4251a25db9f0249245 100644 (file)
@@ -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'
 
index fe67bf9ecc888039dd5476b0f7aa2965fbb0e6b0..714853c7b4732d95f2dd179429cbe829058a80cc 100644 (file)
@@ -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'