]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117474: Skip GIL test in free-threaded build (#117475)
authorSam Gross <colesbury@gmail.com>
Thu, 4 Apr 2024 20:27:14 +0000 (16:27 -0400)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2024 20:27:14 +0000 (16:27 -0400)
In the free-threaded build, the GIL will typically be disabled so
`py-bt` will not show threads waiting on the GIL.

Lib/test/test_gdb/test_backtrace.py

index c41e7cb7c210de2fc277c999ad2aaf05cf96ba76..fe67bf9ecc888039dd5476b0f7aa2965fbb0e6b0 100644 (file)
@@ -49,6 +49,7 @@ Traceback \(most recent call first\):
 
     @unittest.skipIf(python_is_optimized(),
                      "Python was compiled with optimizations")
+    @support.requires_gil_enabled
     @support.requires_resource('cpu')
     def test_threads(self):
         'Verify that "py-bt" indicates threads that are waiting for the GIL'