MCPcopy 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_convertFunction · 0.85
test_float_convertFunction · 0.85
test_complex_castFunction · 0.85
test_bool_casterFunction · 0.85
test_numpy_boolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected