MCPcopy Create free account
hub / github.com/pybind/pybind11 / gen_invalid

Function gen_invalid

tests/test_stl.py:493–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

491
492def test_list_caster_fully_consumes_generator_object():
493 def gen_invalid():
494 yield from [1, 2.0, 3]
495
496 gen_obj = gen_invalid()
497 with pytest.raises(TypeError):

Calls

no outgoing calls

Tested by

no test coverage detected