Skip to content

Commit

Permalink
Switch to item fspath
Browse files Browse the repository at this point in the history
  • Loading branch information
malinoff committed Dec 20, 2016
1 parent 522d59e commit a63b34c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _pytest/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,9 @@ def execute(self, request):
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):
Expand Down

0 comments on commit a63b34c

Please sign in to comment.