call site 3 for test.collect.Directory.__init__
test/rsession/testing/test_reporter.py - line 185
183
184
185
186
187
188
189
190
   def test_full_module(self):
       #py.test.skip("XXX rewrite test to not rely on exact formatting")
->     received = self._test_full_module()
       expected = """
   repmod/test_one.py[1] 
   repmod/test_three.py[0] - FAILED TO LOAD MODULE
   repmod/test_two.py[0] - skipped (reason)"""
       assert received.find(expected) != -1 
test/rsession/testing/test_reporter.py - line 118
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
121
   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 112
110
111
112
113
114
115
   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)))