'The function to trace; raises an exception if that\'s the case
we\'re testing, so that the \'exception\' trace event fires.'

def f(self):

    if (self.raiseOnEvent == 'exception'):
        x = 0
        y = (1 // x)
    else:
        return 1
