traceback for test.collect.Directory.buildname2items

/home/johnny/projects/merlinux/py/dist/py/test/collect.py:240

   def _prepare(self): 
       if not hasattr(self, '_name2items'): 
           ex = getattr(self, '_name2items_exception', None)
           if ex is not None: 
               raise ex[0], ex[1], ex[2]
           try: 
->             self._name2items = self.buildname2items()
           except (SystemExit, KeyboardInterrupt): 
               raise 
           except:
               self._name2items_exception = py.std.sys.exc_info()
               raise 

/home/johnny/projects/merlinux/py/dist/py/test/collect.py:260

   def join(self, name): 
->     self._prepare()
       return self._name2items.get(name, None) 

/home/johnny/projects/merlinux/py/dist/py/test/collect.py:308

   def join(self, name): 
->     x = super(Directory, self).join(name)
       if x is None:    
           x = self.makeitem(name)
       return x 

/home/johnny/projects/merlinux/py/dist/py/test/collect.py:161

   def getitembynames(self, namelist):
       if isinstance(namelist, str):
           namelist = namelist.split("/")
       cur = self
       for name in namelist:
->         next = cur.join(name)
           assert next is not None, (cur, name, namelist)
           cur = next
       return cur

/home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_executor.py:95

   def test_box_executor_stdout():
       rootcol = py.test.collect.Directory(rootdir)
->     item = rootcol.getitembynames(funcprint_spec)
       ex = BoxExecutor(item)
       outcome_repr = ex.execute()
       outcome = ReprOutcome(outcome_repr)
       assert outcome.passed
       assert outcome.stdout == "samfing\n"

/home/johnny/projects/merlinux/py/dist/py/test/item.py:79

   def execute(self, target, *args):
       """ default implementation for calling a test target is to
               simply call it.
           """
->     target(*args)

/home/johnny/projects/merlinux/py/dist/py/test/item.py:73

   def run(self):
       self.state.prepare(self) 
->     self.execute(self.obj, *self.args)

/home/johnny/projects/merlinux/py/dist/py/test/rsession/executor.py:22

   def execute(self):
       try:
->         self.item.run()
           outcome = Outcome()
       except py.test.Item.Skipped, e: 
           outcome = Outcome(skipped=str(e))
       except (KeyboardInterrupt, SystemExit):
           raise
       except:
           excinfo = py.code.ExceptionInfo()
           if isinstance(self.item, py.test.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(report.ImmediateFailure(self.item,
                       ReprOutcome(outcome.make_repr())))
               import pdb
               pdb.post_mortem(excinfo._excinfo[2])
               # XXX hmm, we probably will not like to continue from that point
               # or we do?
               raise SystemExit()
       outcome.stdout = ""
       outcome.stderr = ""
       return outcome

/home/johnny/projects/merlinux/py/dist/py/test/rsession/local.py:31

   def plain_runner(item, session, reporter):
       # box executor is doing stdout/err catching for us, let's do it here
       startcapture(session)
       r = RunExecutor(item, usepdb=session.config.option.usepdb, reporter=reporter)
->     outcome = r.execute()
       outcome = ReprOutcome(outcome.make_repr())
       outcome.stdout, outcome.stderr = finishcapture(session)
       return outcome

/home/johnny/projects/merlinux/py/dist/py/test/rsession/local.py:47

   def apigen_runner(item, session, reporter):
       r = RunExecutor(item, reporter=reporter)
       session.tracer.start_tracing()
->     retval = plain_runner(item, session, reporter)
       session.tracer.end_tracing()
       return retval