call site 0 for test.config.parse
test/rsession/testing/test_lsession.py - line 90
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
   def test_pdb_run(self):
       # we make sure that pdb is engaged
       tmpdir = tmp
       subdir = "sub_pdb_run"
       tmpdir.ensure(subdir, "__init__.py")
       tmpdir.ensure(subdir, "test_one.py").write(py.code.Source("""
               def test_1(): 
                   assert 0
           """))
       import pdb
       l = []
       def some_fun(*args):
           l.append(args)
   
       try:
           post_mortem = pdb.post_mortem
           pdb.post_mortem = some_fun
           args = [str(tmpdir.join(subdir)), '--pdb']
->         config = py.test.config._reparse(args)
           lsession = LSession(config)
           allevents = []
           try:
               lsession.main(reporter=allevents.append, runner=plain_runner)
           except SystemExit:
               pass
           else:
               py.test.fail("Didn't raise system exit")
           failure_events = [event for event in allevents if isinstance(event,
                                                    repevent.ImmediateFailure)]
           assert len(failure_events) == 1
           assert len(l) == 1
       finally:
           pdb.post_mortem = post_mortem
test/config.py - line 187
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