call site 10 for code.Frame.eval
code/testing/test_excinfo.py - line 161
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
   def test_traceback_getcrashentry_empty(self):
       def g():
           __tracebackhide__ = True
           raise ValueError 
       def f():
           __tracebackhide__ = True
           g()
   
       excinfo = py.test.raises(ValueError, f)
       tb = excinfo.traceback
->     entry = tb.getcrashentry()
       co = py.code.Code(g)
       assert entry.frame.code.path == co.path
       assert entry.lineno == co.firstlineno + 2
       assert entry.frame.code.name == 'g'
code/traceback2.py - line 156
152
153
154
155
156
157
158
159
   def getcrashentry(self):
       """ return last non-hidden traceback entry that lead
           to the exception of a traceback. 
           """
->     tb = self.filter()
       if not tb:
           tb = self
       return tb[-1]
code/traceback2.py - line 150
140
141
142
143
144
145
146
147
148
149
150
   def filter(self, fn=lambda x: not x.ishidden()):
       """ return a Traceback instance with certain items removed
   
               fn is a function that gets a single argument, a TracebackItem
               instance, and should return True when the item should be added
               to the Traceback, False when not
   
               by default this removes all the TracebackItems which are hidden
               (see ishidden() above)
           """
->     return Traceback(filter(fn, self))
code/traceback2.py - line 140
140
141
142
143
144
145
146
147
148
149
150
-> def filter(self, fn=lambda x: not x.ishidden()):
       """ return a Traceback instance with certain items removed
   
               fn is a function that gets a single argument, a TracebackItem
               instance, and should return True when the item should be added
               to the Traceback, False when not
   
               by default this removes all the TracebackItems which are hidden
               (see ishidden() above)
           """
       return Traceback(filter(fn, self))
code/traceback2.py - line 79
72
73
74
75
76
77
78
79
80
81
82
83
   def ishidden(self):
       """ return True if the current frame has a var __tracebackhide__ 
               resolving to True
               
               mostly for internal use
           """
       try: 
->         return self.frame.eval("__tracebackhide__") 
       except (SystemExit, KeyboardInterrupt): 
           raise
       except:
           return False