Explicitly clear finalizers list in finalize to ensure cleanup

This commit is contained in:
Bruno Oliveira 2017-11-12 11:28:57 -02:00
parent bdad345f99
commit 6d3fe0b826
1 changed files with 1 additions and 0 deletions

View File

@ -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()