pytester: parseconfigure: remove duplicate config._ensure_unconfigure

This gets done in `parseconfig` already.
This commit is contained in:
Daniel Hahler 2019-10-21 01:13:29 +02:00
parent fbb7f663be
commit b47f57a08a
1 changed files with 0 additions and 2 deletions

View File

@ -927,11 +927,9 @@ class Testdir:
This returns a new :py:class:`_pytest.config.Config` instance like
:py:meth:`parseconfig`, but also calls the pytest_configure hook.
"""
config = self.parseconfig(*args)
config._do_configure()
self.request.addfinalizer(config._ensure_unconfigure)
return config
def getitem(self, source, funcname="test_func"):