Explicitly clear finalizers list in finalize to ensure cleanup
This commit is contained in:
parent
bdad345f99
commit
6d3fe0b826
|
@ -765,6 +765,7 @@ class FixtureDef:
|
||||||
# keep instances alive
|
# keep instances alive
|
||||||
if hasattr(self, "cached_result"):
|
if hasattr(self, "cached_result"):
|
||||||
del self.cached_result
|
del self.cached_result
|
||||||
|
self._finalizer = []
|
||||||
|
|
||||||
def execute(self, request):
|
def execute(self, request):
|
||||||
# get required arguments and register our own finish()
|
# get required arguments and register our own finish()
|
||||||
|
|
Loading…
Reference in New Issue