MCPcopy Index your code
hub / github.com/python/cpython / test_stack_overflow

Method test_stack_overflow

Lib/test/test_faulthandler.py:303–311  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 @unittest.skipIf(not hasattr(faulthandler, '_stack_overflow'),
302 'need faulthandler._stack_overflow()')
303 def test_stack_overflow(self):
304 self.check_fatal_error("""
305 import faulthandler
306 faulthandler.enable()
307 faulthandler._stack_overflow()
308 """,
309 3,
310 '(?:Segmentation fault|Bus error)',
311 other_regex='unable to raise a stack overflow')
312
313 @skip_segfault_on_android
314 def test_gil_released(self):

Callers

nothing calls this directly

Calls 1

check_fatal_errorMethod · 0.95

Tested by

no test coverage detected