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

Method check_fatal_error

Lib/test/test_faulthandler.py:159–163  ·  view source on GitHub ↗
(self, code, line_number, name_regex, func=None, **kw)

Source from the content-addressed store, hash-verified

157 self.assertNotEqual(exitcode, 0)
158
159 def check_fatal_error(self, code, line_number, name_regex, func=None, **kw):
160 if func:
161 name_regex = '%s: %s' % (func, name_regex)
162 fatal_error = 'Fatal Python error: %s' % name_regex
163 self.check_error(code, line_number, fatal_error, **kw)
164
165 def check_windows_exception(self, code, line_number, name_regex, **kw):
166 fatal_error = 'Windows fatal exception: %s' % name_regex

Callers 14

test_sigsegvMethod · 0.95
test_gcMethod · 0.95
test_sigabrtMethod · 0.95
test_sigfpeMethod · 0.95
test_sigbusMethod · 0.95
test_sigillMethod · 0.95
test_stack_overflowMethod · 0.95
test_gil_releasedMethod · 0.95
test_enable_fileMethod · 0.95
test_enable_fdMethod · 0.95

Calls 1

check_errorMethod · 0.95

Tested by

no test coverage detected