File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -607,14 +607,11 @@ def _get_active_fixturedef(
607
607
def _get_fixturestack (self ) -> List ["FixtureDef[Any]" ]:
608
608
current = self
609
609
values : List [FixtureDef [Any ]] = []
610
- while 1 :
611
- fixturedef = getattr (current , "_fixturedef" , None )
612
- if fixturedef is None :
613
- values .reverse ()
614
- return values
615
- values .append (fixturedef )
616
- assert isinstance (current , SubRequest )
610
+ while isinstance (current , SubRequest ):
611
+ values .append (current ._fixturedef ) # type: ignore[has-type]
617
612
current = current ._parent_request
613
+ values .reverse ()
614
+ return values
618
615
619
616
def _compute_fixture_value (self , fixturedef : "FixtureDef[object]" ) -> None :
620
617
"""Create a SubRequest based on "self" and call the execute method
You can’t perform that action at this time.
0 commit comments