diff --git a/tests/test_pickling.cpp b/tests/test_pickling.cpp index f650b8b8e..e154bc483 100644 --- a/tests/test_pickling.cpp +++ b/tests/test_pickling.cpp @@ -33,7 +33,6 @@ void wrap(py::module m) { py::class_(m, "SimpleBase") .def(py::init<>()) .def_readwrite("num", &SimpleBase::num) -#ifdef BAKEIN_BREAK .def(py::pickle( [](const py::object &self) { py::dict d; @@ -50,9 +49,7 @@ void wrap(py::module m) { cpp_state->num = t[0].cast(); auto py_state = t[1].cast(); return std::make_pair(std::move(cpp_state), py_state); - })) -#endif - ; + })); m.def("make_SimpleCppDerivedAsBase", []() { return std::unique_ptr(new SimpleCppDerived); }); diff --git a/tests/test_pickling.py b/tests/test_pickling.py index 685fff966..ad67a1df9 100644 --- a/tests/test_pickling.py +++ b/tests/test_pickling.py @@ -53,7 +53,6 @@ def test_roundtrip_with_dict(cls_name): def test_enum_pickle(): - pytest.skip("BAKEIN_BREAK: ImportError") from pybind11_tests import enums as e data = pickle.dumps(e.EOne, 2) @@ -71,7 +70,6 @@ def test_roundtrip_simple_py_derived(): p = SimplePyDerived() p.num = 202 p.stored_in_dict = 303 - pytest.skip("BAKEIN_BREAK: TypeError: cannot pickle 'SimplePyDerived' object") data = pickle.dumps(p, pickle.HIGHEST_PROTOCOL) p2 = pickle.loads(data) assert isinstance(p2, SimplePyDerived) @@ -80,7 +78,6 @@ def test_roundtrip_simple_py_derived(): def test_roundtrip_simple_cpp_derived(): - pytest.skip("BAKEIN_BREAK: Segmentation fault") p = m.make_SimpleCppDerivedAsBase() assert m.check_dynamic_cast_SimpleCppDerived(p) p.num = 404