call site 5 for test.collect.Function.listchain
test/rsession/testing/test_reporter.py - line 196
195
196
197
198
199
200
201
202
   def test_report_received_item_outcome(self):
->     val = self.report_received_item_outcome()
       expected_lst = ["localhost", "FAILED",
                       "funcpass", "test_one",
                       "SKIPPED",
                       "PASSED"]
       for expected in expected_lst:
           assert val.find(expected) != -1
test/rsession/testing/test_reporter.py - line 70
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
   def report_received_item_outcome(self):
       item = self.getexample("pass")
       outcomes = self.prepare_outcomes()
           
       def boxfun(config, item, outcomes):
           hosts = [HostInfo("localhost")]
           r = self.reporter(config, hosts)
           ch = DummyChannel(hosts[0])
           for outcome in outcomes:
               r.report(repevent.ReceivedItemOutcome(ch, item, outcome))
           
       cap = py.io.StdCaptureFD()
->     boxfun(self.config, item, outcomes)
       out, err = cap.reset()
       assert not err
       return out
test/rsession/testing/test_reporter.py - line 67
62
63
64
65
66
67
   def boxfun(config, item, outcomes):
       hosts = [HostInfo("localhost")]
       r = self.reporter(config, hosts)
       ch = DummyChannel(hosts[0])
       for outcome in outcomes:
->         r.report(repevent.ReceivedItemOutcome(ch, item, outcome))
test/rsession/reporter.py - line 39
35
36
37
38
39
40
41
42
43
44
45
46
47
   def report(self, what):
       repfun = getattr(self, "report_" + what.__class__.__name__, 
                        self.report_unknown)
       try:
->         return repfun(what)
       except (KeyboardInterrupt, SystemExit):
           raise
       except:
           print "Internal reporting problem"
           excinfo = py.code.ExceptionInfo()
           for i in excinfo.traceback:
               print str(i)[2:-1]
           print excinfo
test/rsession/reporter.py - line 262
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
   def report_ReceivedItemOutcome(self, event):
       host = event.host
       hostrepr = self._hostrepr(host)
       if event.outcome.passed:
           self.passed[host] += 1
           sys.stdout.write("%15s: PASSED  " % hostrepr)
       elif event.outcome.skipped:
           self.skipped_tests_outcome.append(event)
           self.skipped[host] += 1
           sys.stdout.write("%15s: SKIPPED " % hostrepr) 
       else:
           self.failed[host] += 1
           self.failed_tests_outcome.append(event)
           sys.stdout.write("%15s: " % hostrepr) 
           ansi_print("FAILED", esc=(31,1), newline=False, file=sys.stdout)
           sys.stdout.write("  ")
       # we should have printed 20 characters to this point
       itempath = ".".join(event.item.listnames()[1:-1])
->     funname = event.item.listnames()[-1]
       lgt = get_terminal_width() - 20
       # mark the function name, to be sure
       to_display = len(itempath) + len(funname) + 1
       if to_display > lgt:
           sys.stdout.write("..." + itempath[to_display-lgt+4:])
       else:
           sys.stdout.write(itempath)
       sys.stdout.write(" ")
       ansi_print(funname, esc=32, file=sys.stdout)
test/collect.py - line 140
139
140
   def listnames(self): 
->     return [x.name for x in self.listchain()]