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

Function test_call_cpp_conduit_success

tests/test_cpp_conduit.py:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_call_cpp_conduit_success():
42 t_h = home_planet.Traveler("home")
43 cap = t_h._pybind11_conduit_v1_(
44 home_planet.PYBIND11_PLATFORM_ABI_ID,
45 home_planet.cpp_type_info_capsule_Traveler,
46 b"raw_pointer_ephemeral",
47 )
48 assert cap.__class__.__name__ == "PyCapsule" or (
49 # Note: this will become unnecessary in the next GraalPy release
50 env.GRAALPY and cap.__class__.__name__ == "capsule"
51 )
52
53
54def test_call_cpp_conduit_platform_abi_id_mismatch():

Callers

nothing calls this directly

Calls 1

TravelerMethod · 0.80

Tested by

no test coverage detected