()
| 39 | |
| 40 | |
| 41 | def 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 | |
| 54 | def test_call_cpp_conduit_platform_abi_id_mismatch(): |