Fix passing request to finish() in FixtureDef

This commit is contained in:
Bruno Oliveira 2017-11-12 11:28:26 -02:00
parent 063335a715
commit bdad345f99
1 changed files with 1 additions and 1 deletions

View File

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