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

Method gen

testing/python/metafunc.py:94–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 return "Exc(from_gen)"
93
94 def gen() -> Iterator[Union[int, None, Exc]]:
95 yield 0
96 yield None
97 yield Exc()
98
99 metafunc = self.Metafunc(func)
100 # When the input is an iterator, only len(args) are taken,

Callers

nothing calls this directly

Calls 1

ExcClass · 0.85

Tested by

no test coverage detected