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

Method check_fatal_error_func

Lib/test/test_faulthandler.py:280–290  ·  view source on GitHub ↗
(self, release_gil)

Source from the content-addressed store, hash-verified

278
279 @unittest.skipIf(_testcapi is None, 'need _testcapi')
280 def check_fatal_error_func(self, release_gil):
281 # Test that Py_FatalError() dumps a traceback
282 with support.SuppressCrashReport():
283 self.check_fatal_error(f"""
284 import _testcapi
285 _testcapi.fatal_error(b'xyz', {release_gil})
286 """,
287 2,
288 'xyz',
289 func='_testcapi_fatal_error_impl',
290 py_fatal_error=True)
291
292 def test_fatal_error(self):
293 self.check_fatal_error_func(False)

Callers 2

test_fatal_errorMethod · 0.95

Calls 1

check_fatal_errorMethod · 0.95

Tested by

no test coverage detected