Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ cant_convert
Function
cant_convert
tests/test_builtin_casters.py:298–299 ·
view source on GitHub ↗
(v)
Source
from the content-addressed store, hash-verified
296
pytest.raises(TypeError, noconvert, v)
297
298
def
cant_convert(v):
299
pytest.raises(TypeError, convert, v)
300
301
assert convert(7) == 7
302
assert noconvert(7) == 7
Callers
5
test_int_convert
Function · 0.85
test_float_convert
Function · 0.85
test_complex_cast
Function · 0.85
test_bool_caster
Function · 0.85
test_numpy_bool
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected