From 636bddcfeac1b95f7ace58db318bd7a073a15706 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 4 Jan 2017 09:01:59 -0500 Subject: [PATCH] fix segfault in test suite due to typo (fixes #586) --- tests/test_pickling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();