def on_session_start(): try: 1/0 # pylint: disable=pointless-statement except ZeroDivisionError: slash.add_error()
def test_1(): global first_error first_error = slash.add_error('First error')
def test_something(self, param, fixture): # pylint: disable=unused-argument slash.add_error("Not supposed to reach here").mark_fatal()
def test_3(): for i in range(30): slash.add_error('sample error #{}'.format(i))
def callback(**_): for i in range(100): slash.add_error('error #{}'.format(i))