def parseconfig(self, *args):
args = self._ensure_basetemp(args)<EOL>import _pytest.config<EOL>config = _pytest.config._prepareconfig(args, self.plugins)<EOL>self.request.addfinalizer(config._ensure_unconfigure)<EOL>return config<EOL>
Return a new pytest Config instance from given commandline args.

        This invokes the pytest bootstrapping code in _pytest.config to create
        a new :py:class:`_pytest.core.PluginManager` and call the
        pytest_cmdline_parse hook to create a new
        :py:class:`_pytest.config.Config` instance.

        If :py:attr:`plugins` has been populated they should be plugin modules
        to be registered with the PluginManager.