call site 0 for test.collect.Directory.recfilter
test/rsession/testing/test_reporter.py - line 214
213
214
215
216
   def test_full_module(self):
->     val = self._test_full_module()
       assert val.find("FAILED TO LOAD MODULE: repmod/test_three.py\n"\
       "\nSkipped ('reason') repmod/test_two.py") != -1
test/rsession/testing/test_reporter.py - line 117
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
   def _test_full_module(self):
       tmpdir = py.test.ensuretemp("repmod")
       tmpdir.ensure("__init__.py")
       tmpdir.ensure("test_one.py").write(py.code.Source("""
           def test_x():
               pass
           """))
       tmpdir.ensure("test_two.py").write(py.code.Source("""
           import py
           py.test.skip("reason")
           """))
       tmpdir.ensure("test_three.py").write(py.code.Source("""
           sadsadsa
           """))
           
       def boxfun():
           config = py.test.config._reparse([str(tmpdir)])
           rootcol = py.test.collect.Directory(tmpdir)
           hosts = [HostInfo('localhost')]
           r = self.reporter(config, hosts)
           list(rootcol._tryiter(reporterror=lambda x : AbstractSession.reporterror(r.report, x)))
   
       cap = py.io.StdCaptureFD()
->     boxfun()
       out, err = cap.reset()
       assert not err
       return out
test/rsession/testing/test_reporter.py - line 114
109
110
111
112
113
114
   def boxfun():
       config = py.test.config._reparse([str(tmpdir)])
       rootcol = py.test.collect.Directory(tmpdir)
       hosts = [HostInfo('localhost')]
       r = self.reporter(config, hosts)
->     list(rootcol._tryiter(reporterror=lambda x : AbstractSession.reporterror(r.report, x)))
test/collect.py - line 212
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
   def _tryiter(self, yieldtype=None, reporterror=None, keyword=None):
       """ yield stop item instances from flattening the collector. 
               XXX deprecated: this way of iteration is not safe in all
               cases. 
           """ 
       if yieldtype is None: 
           yieldtype = py.test.collect.Item 
       if isinstance(self, yieldtype):
           try:
               self._skipbykeyword(keyword)
               yield self
           except Skipped:
               if reporterror is not None:
                   excinfo = py.code.ExceptionInfo()
                   reporterror((excinfo, self))
       else:
           if not isinstance(self, py.test.collect.Item):
               try:
                   if reporterror is not None:
                       reporterror((None, self))
->                 for x in self.run(): 
                       for y in self.join(x)._tryiter(yieldtype, 
                                           reporterror, keyword): 
                           yield y
               except KeyboardInterrupt:
                   raise
               except: 
                   if reporterror is not None: 
                       excinfo = py.code.ExceptionInfo()
                       reporterror((excinfo, self)) 
test/collect.py - line 265
259
260
261
262
263
264
265
266
267
268
269
   def run(self):
       files = []
       dirs = []
       for p in self.fspath.listdir():
           if self.filefilter(p):
               files.append(p.basename)
->         elif self.recfilter(p):
               dirs.append(p.basename) 
       files.sort()
       dirs.sort()
       return files + dirs