call site 0 for code.Traceback.__getitem__
magic/testing/test_exprinfo.py - line 84
80
81
82
83
84
85
   def test_exprinfo_funccall_keywords():
       def g():
           assert global_f(v=11) == 67
       excinfo = getexcinfo(AssertionError, g)
->     msg = getmsg(excinfo)
       assert msg == 'assert 66 == 67\n +  where 66 = global_f(v=11)'
magic/exprinfo.py - line 442
435
436
437
438
439
440
441
442
443
444
445
446
447
   def getmsg(excinfo):
       if isinstance(excinfo, tuple):
           excinfo = py.code.ExceptionInfo(excinfo)
       #frame, line = gettbline(tb)
       #frame = py.code.Frame(frame)
       #return interpret(line, frame)
   
->     tb = excinfo.traceback[-1] 
       source = str(tb.statement).strip()
       x = interpret(source, tb.frame, should_fail=True)
       if not isinstance(x, str):
           raise TypeError, "interpret returned non-string %r" % (x,)
       return x