Skip to content

Commit a63b34c

Browse files
committed
Switch to item fspath
1 parent 522d59e commit a63b34c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_pytest/fixtures.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,9 @@ def execute(self, request):
783783
self.finish()
784784
assert not hasattr(self, "cached_result")
785785

786-
hook = self._fixturemanager.session.config.hook
786+
hook = self._fixturemanager.session.gethookproxy(
787+
request._pyfuncitem.fspath
788+
)
787789
return hook.pytest_fixture_setup(fixturedef=self, request=request)
788790

789791
def __repr__(self):

0 commit comments

Comments
 (0)