mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 09:03:54 +00:00
14 lines
334 B
Python
14 lines
334 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from pybind11_tests import class_sh_unique_ptr_custom_deleter as m
|
|
|
|
if not m.defined_PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT:
|
|
pytest.skip("smart_holder not available.", allow_module_level=True)
|
|
|
|
|
|
def test_create():
|
|
pet = m.create("abc")
|
|
assert pet.name == "abc"
|