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

Method test_sigbus

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

Source from the content-addressed store, hash-verified

251 @support.skip_if_sanitizer("TSAN itercepts SIGBUS", thread=True)
252 @skip_segfault_on_android
253 def test_sigbus(self):
254 self.check_fatal_error("""
255 import faulthandler
256 import signal
257
258 faulthandler.enable()
259 signal.raise_signal(signal.SIGBUS)
260 """,
261 5,
262 'Bus error')
263
264 @unittest.skipIf(_testcapi is None, 'need _testcapi')
265 @unittest.skipUnless(hasattr(signal, 'SIGILL'), 'need signal.SIGILL')

Callers

nothing calls this directly

Calls 1

check_fatal_errorMethod · 0.95

Tested by

no test coverage detected