MCPcopy Create free account
hub / github.com/pytest-dev/pytest / __iter__

Method __iter__

src/_pytest/recwarn.py:180–182  ·  view source on GitHub ↗

Iterate through the recorded warnings.

(self)

Source from the content-addressed store, hash-verified

178 return self._list[i]
179
180 def __iter__(self) -> Iterator["warnings.WarningMessage"]:
181 """Iterate through the recorded warnings."""
182 return iter(self._list)
183
184 def __len__(self) -> int:
185 """The number of recorded warnings."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected