MCPcopy
hub / github.com/pytest-dev/pytest / _iter_chain

Method _iter_chain

src/_pytest/fixtures.py:637–645  ·  view source on GitHub ↗

Yield all SubRequests in the chain, from self up. Note: does *not* yield the TopRequest.

(self)

Source from the content-addressed store, hash-verified

635 return fixturedef.cached_result[0]
636
637 def _iter_chain(self) -> Iterator[SubRequest]:
638 """Yield all SubRequests in the chain, from self up.
639
640 Note: does *not* yield the TopRequest.
641 """
642 current = self
643 while isinstance(current, SubRequest):
644 yield current
645 current = current._parent_request
646
647 def _get_active_fixturedef(self, argname: str) -> FixtureDef[object]:
648 if argname == "request":

Callers 2

_get_fixturestackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected