diff options
author | Sam Gross <colesbury@gmail.com> | 2024-04-04 20:27:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 20:27:14 (GMT) |
commit | 63998a1347f3970ea4c69c881db69fc72b16a54c (patch) | |
tree | 0a48b72584cca6ba53bb7a5e3555692ce36338c4 | |
parent | 434bc593df4c0274b8afd3c1dcdc9234f469d9bf (diff) | |
download | cpython-63998a1347f3970ea4c69c881db69fc72b16a54c.zip cpython-63998a1347f3970ea4c69c881db69fc72b16a54c.tar.gz cpython-63998a1347f3970ea4c69c881db69fc72b16a54c.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_gdb/test_backtrace.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_gdb/test_backtrace.py b/Lib/test/test_gdb/test_backtrace.py index c41e7cb..fe67bf9 100644 --- a/Lib/test/test_gdb/test_backtrace.py +++ b/Lib/test/test_gdb/test_backtrace.py @@ -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' |