call site 10 for test.collect.Module.__init__
doc/example/pytest/test_failures.py - line 9
6
7
8
9
10
11
12
13
   def test_failure_demo_fails_properly(): 
       config = py.test.config._reparse([failure_demo]) 
       session = config.initsession()
->     session.main()
       l = session.getitemoutcomepairs(Failed)
       assert len(l) == 21 
       l = session.getitemoutcomepairs(Passed)
       assert not l 
test/session.py - line 57
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
   def main(self): 
       """ main loop for running tests. """
->     colitems = self.config.getcolitems()
       try:
           self.header(colitems) 
           try:
               try:
                   for colitem in colitems: 
                       self.runtraced(colitem)
               except KeyboardInterrupt: 
                   raise 
           finally: 
               self.footer(colitems) 
       except Exit, ex:
           pass
       return self.getitemoutcomepairs(Failed)
test/config.py - line 65
62
63
64
65
   def getcolitems(self):
       """ return initial collectors. """
       trails = getattr(self, '_coltrails', None)
->     return [self._getcollector(path) for path in (trails or self.args)]
test/config.py - line 77
67
68
69
70
71
72
73
74
75
76
77
   def _getcollector(self, path):
       if isinstance(path, tuple):
           relpath, names = path
           fspath = self.topdir.join(relpath)
           col = self._getcollector(fspath)
       else:
           path = py.path.local(path)
           assert path.check(), "%s: path does not exist" %(path,)
           col = self._getrootcollector(path)
           names = path.relto(col.fspath).split(path.sep)
->     return col._getitembynames(names)
test/collect.py - line 148
142
143
144
145
146
147
148
149
150
151
   def _getitembynames(self, namelist):
       if isinstance(namelist, str):
           namelist = namelist.split("/")
       cur = self
       for name in namelist:
           if name:
->             next = cur.join(name)
               assert next is not None, (cur, name, namelist)
               cur = next
       return cur
doc/conftest.py - line 279
277
278
279
280
281
282
   def join(self, name): 
       if not name.endswith('.txt'): 
->         return super(DocDirectory, self).join(name) 
       p = self.fspath.join(name) 
       if p.check(file=1): 
           return self.ReSTChecker(p, parent=self) 
test/collect.py - line 280
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
   def join(self, name):
       name2items = self.__dict__.setdefault('_name2items', {})
       try:
           res = name2items[name]
       except KeyError:
           p = self.fspath.join(name)
           res = None
           if p.check(file=1): 
               if p.ext == '.py':
->                 res = self.Module(p, parent=self) 
               elif p.ext == '.txt':
                   res = self.DoctestFile(p, parent=self)
           elif p.check(dir=1): 
               Directory = py.test.config.getvalue('Directory', p) 
               res = Directory(p, parent=self) 
           name2items[name] = res 
       return res