MCPcopy Create free account
hub / github.com/davisking/dlib / test_array_serialization_empty

Function test_array_serialization_empty

tools/python/test/test_array.py:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def test_array_serialization_empty():
59 a = array()
60 # cPickle with protocol 2 required for Python 2.7
61 # see http://pybind11.readthedocs.io/en/stable/advanced/classes.html#custom-constructors
62 ser = pickle.dumps(a, 2)
63 deser = pickle.loads(ser)
64 assert a == deser
65
66
67def test_array_serialization():

Callers

nothing calls this directly

Calls 1

arrayClass · 0.90

Tested by

no test coverage detected