From cff32694a47399fb608e96e42d4d7695828fb570 Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Sat, 15 Apr 2023 12:04:38 -0700 Subject: [PATCH] test_gdb: skip test_threads when running without GIL --- Lib/test/test_gdb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index 0f39b8f4571..c16463ebbf6 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -828,6 +828,7 @@ def test_bt_full(self): @unittest.skipIf(python_is_optimized(), "Python was compiled with optimizations") + @unittest.skipIf(sys.flags.nogil, "Python is running without the GIL") def test_threads(self): 'Verify that "py-bt" indicates threads that are waiting for the GIL' cmd = '''