def f(self):
        if self.raiseOnEvent == 'exception':
            x = 0
            y = 1/x
        else:
            return 1
The function to trace; raises an exception if that's the case
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_sys_settrace.py/RaisingTraceFuncTestCase.f