Pickle test additions
These are not working yet for all combinations of builtin and PY3 The goal is to have a sensible default error that states that pickling is not supported.
This commit is contained in:
parent
e5fd1c979b
commit
d2cb98c134
2 changed files with 13 additions and 0 deletions
|
|
@ -48,4 +48,9 @@ struct PickleMe {
|
|||
std::cout << "In C++ constructor " << " [" << msg << "]" << std::endl;
|
||||
}
|
||||
};
|
||||
|
||||
struct NotForPickling {
|
||||
std::string msg;
|
||||
NotForPickling(const std::string& msg) : msg(msg) {}
|
||||
};
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue