Skip to content

Commit cd7eacc

Browse files
committed
fix segfault in test suite due to typo (fixes #586)
1 parent 0e49c02 commit cd7eacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pickling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ test_initializer pickling([](py::module &m) {
7171
throw std::runtime_error("Invalid state!");
7272
/* Cast and construct */
7373
auto& p = self.cast<PickleableWithDict&>();
74-
new (&p) Pickleable(t[0].cast<std::string>());
74+
new (&p) PickleableWithDict(t[0].cast<std::string>());
7575

7676
/* Assign C++ state */
7777
p.extra = t[1].cast<int>();

0 commit comments

Comments
 (0)