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

Function test_is_generator

testing/test_compat.py:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def test_is_generator() -> None:
23 def zap():
24 yield # pragma: no cover
25
26 def foo():
27 pass # pragma: no cover
28
29 assert is_generator(zap)
30 assert not is_generator(foo)
31
32
33def test_real_func_loop_limit() -> None:

Callers

nothing calls this directly

Calls 1

is_generatorFunction · 0.90

Tested by

no test coverage detected