diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 9d1af4622..b4fdccfce 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1848,7 +1848,6 @@ struct property_cpp_function< // Running the pybind11 unit tests with smart_holder as the default holder is to ensure // that `py::smart_holder` / `py::classh` is backward-compatible with all pre-existing // functionality. -# define PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT template using default_holder_type = smart_holder; #else diff --git a/tests/test_class.cpp b/tests/test_class.cpp index e4c0328db..87208d51d 100644 --- a/tests/test_class.cpp +++ b/tests/test_class.cpp @@ -636,7 +636,7 @@ CHECK_NOALIAS(8); CHECK_HOLDER(1, unique); CHECK_HOLDER(2, unique); CHECK_HOLDER(3, unique); -#ifndef PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT +#ifndef PYBIND11_USE_SMART_HOLDER_AS_DEFAULT CHECK_HOLDER(4, unique); CHECK_HOLDER(5, unique); #endif