mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
Test pickling a simple callable (does not work). (#3906)
* Test pickling a simple callable (does not work). Currently only documents that it does not work. Starting point for future fix. * Use re.search to accommodate variations of the TypeError message. * PyPy: exercise full dumps/loads cycle. * Adding explicit "broken" comment.
This commit is contained in:
committed by
GitHub
parent
f0b9f755e4
commit
287e4f233d
@@ -61,6 +61,8 @@ void wrap(py::module m) {
|
||||
} // namespace exercise_trampoline
|
||||
|
||||
TEST_SUBMODULE(pickling, m) {
|
||||
m.def("simple_callable", []() { return 20220426; });
|
||||
|
||||
// test_roundtrip
|
||||
class Pickleable {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user