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

Method test_sigfpe

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

Source from the content-addressed store, hash-verified

238 "SIGFPE cannot be caught on Windows")
239 @support.skip_if_sanitizer("TSAN itercepts SIGFPE", thread=True)
240 def test_sigfpe(self):
241 self.check_fatal_error("""
242 import faulthandler
243 faulthandler.enable()
244 faulthandler._sigfpe()
245 """,
246 3,
247 'Floating-point exception')
248
249 @unittest.skipIf(_testcapi is None, 'need _testcapi')
250 @unittest.skipUnless(hasattr(signal, 'SIGBUS'), 'need signal.SIGBUS')

Callers

nothing calls this directly

Calls 1

check_fatal_errorMethod · 0.95

Tested by

no test coverage detected