def find_trace(self, traces, traceback):
    for trace in traces:
        if (trace[2] == traceback._frames):
            return trace
    self.fail('trace not found')
def find_trace(self, traces, traceback):
    for trace in traces:
        if (trace[2] == traceback._frames):
            return trace
    self.fail('trace not found')