call site 0 for compat.optparse.OptionParser.parse_args
test/rsession/testing/test_hostmanage.py - line 240
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
   def test_hostmanager_rsync_ignore(self):
       dir2 = self.source.ensure("dir1", "dir2", dir=1)
       dir5 = self.source.ensure("dir5", "dir6", "bogus")
       dirf = self.source.ensure("dir5", "file")
       dir2.ensure("hello")
       self.source.join("conftest.py").write(py.code.Source("""
               dist_rsync_ignore = ['dir1/dir2', 'dir5/dir6']
           """))
->     config = py.test.config._reparse([self.source])
       hm = HostManager(config, 
                        hosts=[HostInfo("localhost:" + str(self.dest))])
       events = []
       print events
       hm.init_rsync(reporter=events.append)
       assert self.dest.join("dir1").check()
       assert not self.dest.join("dir1", "dir2").check()
       assert self.dest.join("dir5","file").check()
       assert not self.dest.join("dir6").check()
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 
test/config.py - line 48
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
   def parse(self, args): 
       """ parse cmdline arguments into this config object. 
               Note that this can only be called once per testing process. 
           """ 
       assert not self._initialized, (
               "can only parse cmdline args once per Config object")
       self._initialized = True
       adddefaultoptions(self)
       self._conftest.setinitial(args) 
       args = [str(x) for x in args]
->     cmdlineoption, args = self._parser.parse_args(args) 
       self.option.__dict__.update(vars(cmdlineoption))
       if not args:
           args.append(py.std.os.getcwd())
       self.topdir = gettopdir(args)
       self.args = args