Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
492
def
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):
Callers
2
test_list_caster_fully_consumes_generator_object
Function · 0.85
test_map_caster_fully_consumes_generator_object
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected