Switch to item fspath

This commit is contained in:
Dmitry Malinovsky 2016-12-20 10:44:09 +06:00
parent 522d59e844
commit a63b34c685
1 changed files with 3 additions and 1 deletions

View File

@ -783,7 +783,9 @@ class FixtureDef:
self.finish() self.finish()
assert not hasattr(self, "cached_result") 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) return hook.pytest_fixture_setup(fixturedef=self, request=request)
def __repr__(self): def __repr__(self):