diff --git a/tests/test_pickling.cpp b/tests/test_pickling.cpp index 87c623d39..52b1dbc30 100644 --- a/tests/test_pickling.cpp +++ b/tests/test_pickling.cpp @@ -71,7 +71,7 @@ test_initializer pickling([](py::module &m) { throw std::runtime_error("Invalid state!"); /* Cast and construct */ auto& p = self.cast(); - new (&p) Pickleable(t[0].cast()); + new (&p) PickleableWithDict(t[0].cast()); /* Assign C++ state */ p.extra = t[1].cast();