From b47f57a08a9db7b3ec80b8197153a86d1eef117d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 21 Oct 2019 01:13:29 +0200 Subject: [PATCH] pytester: parseconfigure: remove duplicate config._ensure_unconfigure This gets done in `parseconfig` already. --- src/_pytest/pytester.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index a050dad09..2ce3701c0 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -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"):