traceback for test.collect.Directory.recfilter

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

   def makeitem(self, basename, filefilter=None, recfilter=None): 
       p = self.fspath.join(basename)
       if p.check(file=1) and (not filefilter or filefilter(p)): 
           if p.ext == '.py':
               return self.Module(p, parent=self) 
           elif p.ext == '.txt':
               return self.DoctestFile(p, parent=self)
->     elif p.check(dir=1) and (not recfilter or recfilter(p)): 
           Directory = py.test.Config.getvalue('Directory', p) 
           return Directory(p, parent=self) 

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

   def buildname2items(self): 
       d = {} 
       for p in self.fspath.listdir(): 
->         x = self.makeitem(p.basename, self.filefilter, self.recfilter)
           if x is not None: 
               d[p.basename] = x
       return d 

/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_reporter.py:63

   def _test_module(self):
       config, args = py.test.Config.parse(["some_sub"])
       # we just go...
       rootcol = py.test.collect.Directory(self.pkgdir.dirpath())
->     funcitem = rootcol.getitembynames(funcpass_spec)
       moditem = rootcol.getitembynames(mod_spec)
       outcomes = self.prepare_outcomes()
           
       def boxfun(pkgdir, config, item, funcitem, outcomes):
           r = self.reporter(config, ["localhost"])
           #r.pkgdir = pkdgir
           r.report(report.ItemStart(item))
           for outcome in outcomes:
               r.report(report.ReceivedItemOutcome(None, funcitem, outcome))
           
       s = StringIO()
       stdoutcopy = sys.stdout
       sys.stdout = s
       boxfun(self.pkgdir, config, moditem, funcitem, outcomes)
       sys.stdout = stdoutcopy
           
       return s.getvalue()

/home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_reporter.py:165

   def test_module(self):
->     val = self._test_module()
       print val
       expected = """ localhost: FAILED  py test rsession testing test_slave.py funcpass
    localhost: SKIPPED py test rsession testing test_slave.py funcpass
    localhost: FAILED  py test rsession testing test_slave.py funcpass
    localhost: PASSED  py test rsession testing test_slave.py funcpass
   """
       assert val == expected

/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