traceback for test.collect.Directory.filefilter

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

   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/rsession/rsession.py:101

   def make_colitems(paths, baseon): 
       # we presume that from the base we can simply get to 
       # the target paths by joining the basenames 
       res = []
       for x in paths: 
           x = py.path.local(x)
           current = py.test.collect.Directory(baseon)  
           relparts = x.relto(baseon).split(x.sep) 
           assert relparts 
           for part in relparts: 
->             next = current.join(part) 
               assert next is not None, (current, part) 
               current = next 
           res.append(current) 
       return res 

/home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_rsession.py:41

   def test_make_colitems():
       one = pkgdir.join("initpkg.py")
       two = pkgdir.join("path", "__init__.py")
   
->     cols = RSession.make_colitems([one, two], baseon=pkgdir) 
       assert len(cols) == 2
       col_one, col_two = cols
       assert col_one.listnames() == ["py", "initpkg.py"]
       assert col_two.listnames() == ["py", "path", "__init__.py"]
   
       cols = RSession.make_colitems([one, two], baseon=pkgdir.dirpath()) 
       assert len(cols) == 2
       col_one, col_two = cols
       assert col_one.listnames() == [pkgdir.dirpath().basename, 
                                      "py", "initpkg.py"]
       assert col_two.listnames() == [pkgdir.dirpath().basename, 
                                      "py", "path", "__init__.py"]

/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