File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -992,8 +992,8 @@ def finish(self, request: SubRequest) -> None:
992
992
if exc :
993
993
raise exc
994
994
finally :
995
- hook = self . _fixturemanager . session . gethookproxy ( request .node .path )
996
- hook .pytest_fixture_post_finalizer (fixturedef = self , request = request )
995
+ ihook = request .node .ihook
996
+ ihook .pytest_fixture_post_finalizer (fixturedef = self , request = request )
997
997
# Even if finalization fails, we invalidate the cached fixture
998
998
# value and remove all finalizers because they may be bound methods
999
999
# which will keep instances alive.
@@ -1027,8 +1027,8 @@ def execute(self, request: SubRequest) -> FixtureValue:
1027
1027
self .finish (request )
1028
1028
assert self .cached_result is None
1029
1029
1030
- hook = self . _fixturemanager . session . gethookproxy ( request .node .path )
1031
- result = hook .pytest_fixture_setup (fixturedef = self , request = request )
1030
+ ihook = request .node .ihook
1031
+ result = ihook .pytest_fixture_setup (fixturedef = self , request = request )
1032
1032
return result
1033
1033
1034
1034
def cache_key (self , request : SubRequest ) -> object :
You can’t perform that action at this time.
0 commit comments