call site 0 for code.Traceback.cut
test/rsession/testing/test_slave.py - line 65
62
63
64
65
66
67
68
69
   def test_slave_run_failing_wrapped(self):
       node = self.gettestnode()
       item = self.getexample("fail") 
->     repr_outcome = node.run(item._get_collector_trail()) 
       outcome = ReprOutcome(repr_outcome)  
       assert not outcome.passed 
       assert not outcome.setupfailure 
       assert outcome.excinfo
test/rsession/slave.py - line 26
23
24
25
26
27
28
29
30
   def run(self, itemspec):
       #outcome = self.execute(itemspec)
       #return outcome.make_repr()
->     outcome = self.execute(itemspec)
       if self.executor.wraps:
           return outcome
       else:
           return outcome.make_repr(self.config.option.tbstyle)
test/rsession/slave.py - line 21
18
19
20
21
   def execute(self, itemspec):
       item = self.config._getcollector(itemspec)
       ex = self.executor(item, config=self.config)
->     return ex.execute()
test/rsession/executor.py - line 51
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
   def execute(self, capture=True):
       try:
           self.run(capture)
           outcome = Outcome()
       except Skipped, e: 
           outcome = Outcome(skipped=str(e))
       except (SystemExit, KeyboardInterrupt):
           raise
       except:
           e = sys.exc_info()[1]
           if isinstance(e, Failed) and e.excinfo:
               excinfo = e.excinfo
           else:
               excinfo = py.code.ExceptionInfo()
               if isinstance(self.item, py.test.collect.Function): 
                   fun = self.item.obj # hope this is stable 
                   code = py.code.Code(fun)
                   excinfo.traceback = excinfo.traceback.cut(
->                     path=code.path, firstlineno=code.firstlineno)
           outcome = Outcome(excinfo=excinfo, setupfailure=False)
           if self.usepdb:
               if self.reporter is not None:
                   self.reporter(repevent.ImmediateFailure(self.item,
                       ReprOutcome(outcome.make_repr
                                   (self.config.option.tbstyle))))
               import pdb
               pdb.post_mortem(excinfo._excinfo[2])
               # XXX hmm, we probably will not like to continue from that
               #     point
               raise SystemExit()
       outcome.stdout, outcome.stderr = self.item._getouterr()
       return outcome