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

Method __iter__

src/_pytest/mark/structures.py:581–588  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

579 raise ValueError("cannot delete key in keywords dict")
580
581 def __iter__(self) -> Iterator[str]:
582 # Doesn't need to be fast.
583 yield from self._markers
584 if self.parent is not None:
585 for keyword in self.parent.keywords:
586 # self._marks and self.parent.keywords can have duplicates.
587 if keyword not in self._markers:
588 yield keyword
589
590 def __len__(self) -> int:
591 # Doesn't need to be fast.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected