()
| 233 | |
| 234 | |
| 235 | def test_pass_shared_ptr_ptr(): |
| 236 | obj = m.atyp() |
| 237 | with pytest.raises(RuntimeError) as excinfo: |
| 238 | m.pass_shared_ptr_ptr(obj) |
| 239 | assert str(excinfo.value) == ( |
| 240 | "Passing `std::shared_ptr<T> *` from Python to C++ is not supported" |
| 241 | " (inherently unsafe)." |
| 242 | ) |
| 243 | |
| 244 | |
| 245 | def test_unusual_op_ref(): |