diff --git a/_pytest/fixtures.py b/_pytest/fixtures.py index 74efd309d..ceae79cb4 100644 --- a/_pytest/fixtures.py +++ b/_pytest/fixtures.py @@ -765,6 +765,7 @@ class FixtureDef: # keep instances alive if hasattr(self, "cached_result"): del self.cached_result + self._finalizer = [] def execute(self, request): # get required arguments and register our own finish()