https://github.com/python/cpython/commit/63998a1347f3970ea4c69c881db69fc72b16a54c
commit: 63998a1347f3970ea4c69c881db69fc72b16a54c
branch: main
author: Sam Gross <[email protected]>
committer: colesbury <[email protected]>
date: 2024-04-04T16:27:14-04:00
summary:

gh-117474: Skip GIL test in free-threaded build (#117475)

In the free-threaded build, the GIL will typically be disabled so
`py-bt` will not show threads waiting on the GIL.

files:
M Lib/test/test_gdb/test_backtrace.py

diff --git a/Lib/test/test_gdb/test_backtrace.py 
b/Lib/test/test_gdb/test_backtrace.py
index c41e7cb7c210de..fe67bf9ecc8880 100644
--- a/Lib/test/test_gdb/test_backtrace.py
+++ b/Lib/test/test_gdb/test_backtrace.py
@@ -49,6 +49,7 @@ def test_bt_full(self):
 
     @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'

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to