MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_pickle_default_box

Method test_pickle_default_box

test/test_box.py:920–925  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)."""

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected