Switch to item fspath

This commit is contained in:
Dmitry Malinovsky
2016-12-20 10:44:09 +06:00
parent 522d59e844
commit a63b34c685

View File

@@ -783,7 +783,9 @@ class FixtureDef:
self.finish()
assert not hasattr(self, "cached_result")
hook = self._fixturemanager.session.config.hook
hook = self._fixturemanager.session.gethookproxy(
request._pyfuncitem.fspath
)
return hook.pytest_fixture_setup(fixturedef=self, request=request)
def __repr__(self):