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

Function test_none_deferred

tests/test_builtin_casters.py:435–441  ·  view source on GitHub ↗

None passed as various argument types should defer to other overloads

()

Source from the content-addressed store, hash-verified

433
434
435def test_none_deferred():
436 """None passed as various argument types should defer to other overloads"""
437 assert not m.defer_none_cstring("abc")
438 assert m.defer_none_cstring(None)
439 assert not m.defer_none_custom(UserType())
440 assert m.defer_none_custom(None)
441 assert m.nodefer_none_void(None)
442
443
444def test_void_caster():

Callers

nothing calls this directly

Calls 1

UserTypeClass · 0.90

Tested by

no test coverage detected