call site 4 for code.Frame.eval
doc/test_conftest.py - line 19
8
9
10
11
12
13
14
15
16
17
18
19
20
21
   def test_doctest_extra_exec(): 
       # XXX get rid of the next line: 
       py.magic.autopath().dirpath('conftest.py').copy(tmpdir.join('conftest.py'))
       xtxt = tmpdir.join('y.txt')
       xtxt.write(py.code.Source("""
           hello::
               .. >>> raise ValueError 
                  >>> None
       """))
       config = py.test.config._reparse([xtxt]) 
       session = config.initsession()
->     session.main()
       l = session.getitemoutcomepairs(Failed) 
       assert len(l) == 1
test/session.py - line 67
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
   def main(self): 
       """ main loop for running tests. """
       colitems = self.config.getcolitems()
       try:
           self.header(colitems) 
           try:
               try:
                   for colitem in colitems: 
                       self.runtraced(colitem)
               except KeyboardInterrupt: 
                   raise 
           finally: 
->             self.footer(colitems) 
       except Exit, ex:
           pass
test/terminal/terminal.py - line 163
158
159
160
161
162
163
164
   def footer(self, colitems):
       super(TerminalSession, self).footer(colitems) 
       self.endtime = now()
       self.out.line() 
       self.skippedreasons()
->     self.failures()
       self.summaryline()
test/terminal/terminal.py - line 258
251
252
253
254
255
256
257
258
   def failures(self):
       if self.config.option.tbstyle == 'no':
           return   # skip the detailed failure reports altogether
       l = self.getitemoutcomepairs(Failed)
       if l: 
           self.out.sep('_')
           for colitem, outcome in l: 
->             self.repr_failure(colitem, outcome) 
test/terminal/terminal.py - line 271
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
   def repr_failure(self, item, outcome): 
       excinfo = outcome.excinfo 
       traceback = excinfo.traceback
       #print "repr_failures sees item", item
       #print "repr_failures sees traceback"
       #py.std.pprint.pprint(traceback)
       if item and not self.config.option.fulltrace: 
           path, firstlineno = item._getpathlineno()
           ntraceback = traceback.cut(path=path, firstlineno=firstlineno)
           if ntraceback == traceback:
               ntraceback = ntraceback.cut(path=path)
->         traceback = ntraceback.filter()
       if not traceback: 
           self.out.line("empty traceback from item %r" % (item,)) 
           return
       handler = getattr(self.presenter, 'repr_failure_tb%s' % self.config.option.tbstyle)
       handler(item, excinfo, traceback, lambda : self.repr_out_err(item))
code/traceback2.py - line 146
136
137
138
139
140
141
142
143
144
145
146
   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 136
136
137
138
139
140
141
142
143
144
145
146
-> 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 75
68
69
70
71
72
73
74
75
76
77
78
79
   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