call site 0 for test.config.__init__
test/rsession/testing/test_lsession.py - line 212
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
   def test_module_raising(self):
       tmpdir = tmp
       tmpdir.ensure("sub5", "__init__.py")
       tmpdir.ensure("sub5", "test_some.py").write(py.code.Source("""
               1/0
           """))
       tmpdir.ensure("sub5", "test_other.py").write(py.code.Source("""
               import py
               py.test.skip("reason")
           """))
           
       args = [str(tmpdir.join("sub5"))]
->     config = py.test.config._reparse(args)
       lsession = LSession(config)
       allevents = []
       lsession.main(reporter=allevents.append, runner=box_runner)
       testevents = [x for x in allevents 
                       if isinstance(x, repevent.ReceivedItemOutcome)]
       assert len(testevents) == 0
       failedtryiter = [x for x in allevents 
                       if isinstance(x, repevent.FailedTryiter)]
       assert len(failedtryiter) == 1
       skippedtryiter = [x for x in allevents 
                       if isinstance(x, repevent.SkippedTryiter)]
       assert len(skippedtryiter) == 1
test/config.py - line 186
180
181
182
183
184
185
186
187
188
189
190
   def _reparse(self, args):
       """ this is used from tests that want to re-invoke parse(). """
       #assert args # XXX should not be empty
       global config_per_process
       oldconfig = py.test.config
       try:
->         config_per_process = py.test.config = Config()
           config_per_process.parse(args) 
           return config_per_process
       finally: 
           config_per_process = py.test.config = oldconfig