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(
607607 def _get_fixturestack (self ) -> List ["FixtureDef[Any]" ]:
608608 current = self
609609 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]
617612 current = current ._parent_request
613+ values .reverse ()
614+ return values
618615
619616 def _compute_fixture_value (self , fixturedef : "FixtureDef[object]" ) -> None :
620617 """Create a SubRequest based on "self" and call the execute method
You can’t perform that action at this time.
0 commit comments