pybind11/tests/test_class_sh_unique_ptr_custom_deleter.py
Ralf W. Grosse-Kunstleve c684f6cec0 Transfer reduced test here.
Reduced from a PyCLIF use case in the wild by @wangxf123456 (internal change cl/565476030).
2023-10-31 23:56:16 -07:00

7 lines
143 B
Python

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