Skip to content

Commit cff3269

Browse files
committed
test_gdb: skip test_threads when running without GIL
1 parent 9ab9696 commit cff3269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_gdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ def test_bt_full(self):
828828

829829
@unittest.skipIf(python_is_optimized(),
830830
"Python was compiled with optimizations")
831+
@unittest.skipIf(sys.flags.nogil, "Python is running without the GIL")
831832
def test_threads(self):
832833
'Verify that "py-bt" indicates threads that are waiting for the GIL'
833834
cmd = '''

0 commit comments

Comments
 (0)