call site 0 for test.collect.Function.listnames
test/rsession/testing/test_reporter.py - line 205
204
205
206
207
208
209
210
211
   def test_module(self):
->     val = self._test_module()
       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 89
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
   def _test_module(self):
       funcitem = self.getexample("pass")
       moditem = self.getmod()
       outcomes = self.prepare_outcomes()
           
       def boxfun(config, item, funcitem, outcomes):
           hosts = [HostInfo('localhost')]
           r = self.reporter(config, hosts)
           r.report(repevent.ItemStart(item))
           ch = DummyChannel(hosts[0])
           for outcome in outcomes:
               r.report(repevent.ReceivedItemOutcome(ch, funcitem, outcome))
           
       cap = py.io.StdCaptureFD()
->     boxfun(self.config, moditem, funcitem, outcomes)
       out, err = cap.reset()
       assert not err
       return out
test/rsession/testing/test_reporter.py - line 86
80
81
82
83
84
85
86
   def boxfun(config, item, funcitem, outcomes):
       hosts = [HostInfo('localhost')]
       r = self.reporter(config, hosts)
       r.report(repevent.ItemStart(item))
       ch = DummyChannel(hosts[0])
       for outcome in outcomes:
->         r.report(repevent.ReceivedItemOutcome(ch, funcitem, 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)