Fix passing request to finish() in FixtureDef
This commit is contained in:
parent
063335a715
commit
bdad345f99
|
@ -785,7 +785,7 @@ class FixtureDef:
|
||||||
return result
|
return result
|
||||||
# we have a previous but differently parametrized fixture instance
|
# we have a previous but differently parametrized fixture instance
|
||||||
# so we need to tear it down before creating a new one
|
# so we need to tear it down before creating a new one
|
||||||
self.finish()
|
self.finish(request)
|
||||||
assert not hasattr(self, "cached_result")
|
assert not hasattr(self, "cached_result")
|
||||||
|
|
||||||
hook = self._fixturemanager.session.gethookproxy(request.node.fspath)
|
hook = self._fixturemanager.session.gethookproxy(request.node.fspath)
|
||||||
|
|
Loading…
Reference in New Issue