示例#1
0
 def reparseconfig(self, args=None):
     """ this is used from tests that want to re-invoke parse(). """
     if not args:
         args = [self.tmpdir]
     from py._test import config 
     oldconfig = config.config_per_process # py.test.config
     try:
         c = config.config_per_process = py.test.config = pytestConfig()
         c.basetemp = oldconfig.mktemp("reparse", numbered=True)
         c.parse(args) 
         return c
     finally: 
         config.config_per_process = py.test.config = oldconfig 
示例#2
0
 def reparseconfig(self, args=None):
     """ this is used from tests that want to re-invoke parse(). """
     if not args:
         args = [self.tmpdir]
     from py._test import config
     oldconfig = config.config_per_process  # py.test.config
     try:
         c = config.config_per_process = py.test.config = pytestConfig()
         c.basetemp = oldconfig.mktemp("reparse", numbered=True)
         c.parse(args)
         return c
     finally:
         config.config_per_process = py.test.config = oldconfig
示例#3
0
 def Config(self, topdir=None):
     if topdir is None:
         topdir = self.tmpdir.dirpath()
     return pytestConfig(topdir=topdir)
示例#4
0
 def Config(self, topdir=None):
     if topdir is None:
         topdir = self.tmpdir.dirpath()
     return pytestConfig(topdir=topdir)