Switch to item fspath
This commit is contained in:
parent
522d59e844
commit
a63b34c685
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue