Skip to content

Commit bae22e1

Browse files
authored
Merge pull request #6016 from blueyed/pytest-_ensure_unconfigure-twice
pytester: parseconfigure: remove duplicate config._ensure_unconfigure
2 parents 215be88 + b47f57a commit bae22e1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/_pytest/pytester.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,11 +927,9 @@ def parseconfigure(self, *args):
927927
928928
This returns a new :py:class:`_pytest.config.Config` instance like
929929
:py:meth:`parseconfig`, but also calls the pytest_configure hook.
930-
931930
"""
932931
config = self.parseconfig(*args)
933932
config._do_configure()
934-
self.request.addfinalizer(config._ensure_unconfigure)
935933
return config
936934

937935
def getitem(self, source, funcname="test_func"):

0 commit comments

Comments
 (0)