call site 0 for code.Source.getstatement
code/testing/test_source.py - line 241
230
231
232
233
234
235
236
237
238
239
240
241
242
   def test_getline_finally():
       #py.test.skip("inner statements cannot be located yet.")
       def c(): pass
       excinfo = py.test.raises(TypeError, """
              teardown = None
              try:
                   c(1)
              finally:
                   if teardown:
                       teardown()
       """)
->     source = excinfo.traceback[-1].statement
       assert str(source).strip() == 'c(1)'
code/traceback2.py - line 25
22
23
24
25
   def statement(self):
       """ return a py.code.Source object for the current statement """
       source = self.frame.code.fullsource
->     return source.getstatement(self.lineno)