Merge pull request #6016 from blueyed/pytest-_ensure_unconfigure-twice
pytester: parseconfigure: remove duplicate config._ensure_unconfigure
This commit is contained in:
commit
bae22e1fdd
|
@ -927,11 +927,9 @@ class Testdir:
|
||||||
|
|
||||||
This returns a new :py:class:`_pytest.config.Config` instance like
|
This returns a new :py:class:`_pytest.config.Config` instance like
|
||||||
:py:meth:`parseconfig`, but also calls the pytest_configure hook.
|
:py:meth:`parseconfig`, but also calls the pytest_configure hook.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
config = self.parseconfig(*args)
|
config = self.parseconfig(*args)
|
||||||
config._do_configure()
|
config._do_configure()
|
||||||
self.request.addfinalizer(config._ensure_unconfigure)
|
|
||||||
return config
|
return config
|
||||||
|
|
||||||
def getitem(self, source, funcname="test_func"):
|
def getitem(self, source, funcname="test_func"):
|
||||||
|
|
Loading…
Reference in New Issue