Lines Matching refs:faulthandler
3 import faulthandler
245 @unittest.skipIf(not hasattr(faulthandler, '_stack_overflow'),
334 was_enabled = faulthandler.is_enabled()
336 faulthandler.enable()
337 self.assertTrue(faulthandler.is_enabled())
338 faulthandler.disable()
339 self.assertFalse(faulthandler.is_enabled())
342 faulthandler.enable()
344 faulthandler.disable()
535 @unittest.skipIf(not hasattr(faulthandler, 'dump_traceback_later'),
621 @unittest.skipIf(not hasattr(faulthandler, "register"),
741 faulthandler.enable()
743 faulthandler.dump_traceback()
744 if hasattr(faulthandler, 'dump_traceback_later'):
746 faulthandler.dump_traceback_later(1e-3)
747 if hasattr(faulthandler, "register"):
749 faulthandler.register(signal.SIGUSR1)