Merge pull request #6016 from blueyed/pytest-_ensure_unconfigure-twice

pytester: parseconfigure: remove duplicate config._ensure_unconfigure
This commit is contained in:
Daniel Hahler 2019-10-23 01:39:23 +02:00 committed by GitHub
commit bae22e1fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"):