Skip to content

Commit b47f57a

Browse files
committed
pytester: parseconfigure: remove duplicate config._ensure_unconfigure
This gets done in `parseconfig` already.
1 parent fbb7f66 commit b47f57a

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)