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
def Config(self, topdir=None): if topdir is None: topdir = self.tmpdir.dirpath() return pytestConfig(topdir=topdir)