diff --git a/tests/test_class_sh_shared_ptr_copy_move.cpp b/tests/test_class_sh_shared_ptr_copy_move.cpp index 823cbc4bf..66770c41c 100644 --- a/tests/test_class_sh_shared_ptr_copy_move.cpp +++ b/tests/test_class_sh_shared_ptr_copy_move.cpp @@ -34,7 +34,8 @@ using FooSmHld = Foo<1>; } // namespace } // namespace pybind11_tests -PYBIND11_TYPE_CASTER_BASE_HOLDER(pybind11_tests::FooShPtr, std::shared_ptr) +PYBIND11_TYPE_CASTER_BASE_HOLDER(pybind11_tests::FooShPtr, + std::shared_ptr) PYBIND11_SMART_HOLDER_TYPE_CASTERS(pybind11_tests::FooSmHld) namespace pybind11_tests { @@ -45,8 +46,7 @@ TEST_SUBMODULE(class_sh_shared_ptr_copy_move, m) { py::class_>(m, "FooShPtr") .def("get_history", &FooShPtr::get_history); - py::classh(m, "FooSmHld") - .def("get_history", &FooSmHld::get_history); + py::classh(m, "FooSmHld").def("get_history", &FooSmHld::get_history); m.def("test_ShPtr_copy", []() { auto o = std::make_shared("copy");