Skip to content

Commit 4689f4e

Browse files
committed
Skip test_enable_max_threads on free-threading builds
The fatal-signal handler only dumps the current thread when the GIL is disabled (gh-104812 / 3.14 versionchanged), so the truncation marker assertion in test_enable_max_threads fails on free-threading CI runs. Skip it there.
1 parent 776e790 commit 4689f4e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_faulthandler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,9 @@ def worker():
757757
self.assertEqual(output.count(b"Thread 0x"), 3)
758758

759759
@skip_segfault_on_android
760+
@unittest.skipIf(support.Py_GIL_DISABLED,
761+
"fatal-signal handler only dumps the current thread "
762+
"when the GIL is disabled")
760763
def test_enable_max_threads(self):
761764
# enable(max_threads=N) caps the thread dump produced when a
762765
# fatal signal fires.

0 commit comments

Comments
 (0)