(self)
| 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') |
nothing calls this directly
no test coverage detected