From bdad345f991cae76896476a1b574269b23085bc3 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sun, 12 Nov 2017 11:28:26 -0200 Subject: [PATCH] Fix passing request to finish() in FixtureDef --- _pytest/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/fixtures.py b/_pytest/fixtures.py index f1374b20f..74efd309d 100644 --- a/_pytest/fixtures.py +++ b/_pytest/fixtures.py @@ -785,7 +785,7 @@ class FixtureDef: return result # we have a previous but differently parametrized fixture instance # so we need to tear it down before creating a new one - self.finish() + self.finish(request) assert not hasattr(self, "cached_result") hook = self._fixturemanager.session.gethookproxy(request.node.fspath)