pybind11/tests/test_class_sh_unique_ptr_custom_deleter.py
Ralf W. Grosse-Kunstleve d9d96118e6 Bring in all tests/test_class_*.cpp,py from smart_holder branch as-is that pass without any further changes.
All unit tests pass ASAN and MSAN testing with the Google-internal toolchain.
2024-07-05 12:56:41 -07:00

9 lines
179 B
Python

from __future__ import annotations
from pybind11_tests import class_sh_unique_ptr_custom_deleter as m
def test_create():
pet = m.create("abc")
assert pet.name == "abc"