(self)
| 918 | assert type(loaded.a) is _SubclassBox |
| 919 | |
| 920 | def test_pickle_default_box(self): |
| 921 | if platform.python_implementation() == "PyPy": |
| 922 | pytest.skip("Pickling does not work correctly on PyPy") |
| 923 | bb = Box(default_box=True) |
| 924 | loaded = pickle.loads(pickle.dumps(bb)) |
| 925 | assert bb == loaded |
| 926 | |
| 927 | def test_pickle_preserves_nested_box_dots(self): |
| 928 | """Nested boxes must keep box_dots after pickle (#260).""" |