MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_sigbus

Method test_sigbus

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

Source from the content-addressed store, hash-verified

275 @support.skip_if_sanitizer("TSAN itercepts SIGBUS", thread=True)
276 @skip_segfault_on_android
277 def test_sigbus(self):
278 self.check_fatal_error("""
279 import faulthandler
280 import signal
281
282 faulthandler.enable()
283 signal.raise_signal(signal.SIGBUS)
284 """,
285 5,
286 'Bus error')
287
288 @unittest.skipIf(_testcapi is None, 'need _testcapi')
289 @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