MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / test_odict_items

Method test_odict_items

tests/cloudpickle_test.py:247–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 assert type(values) is type(results)
246
247 def test_odict_items(self):
248 items = collections.OrderedDict([("a", 1), ("b", 2)]).items()
249 results = pickle_depickle(items)
250 self.assertEqual(results, items)
251 assert type(items) is type(results)
252
253 def test_sliced_and_non_contiguous_memoryview(self):
254 buffer_obj = memoryview(b"Hello!" * 3)[2:15:2]

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected