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

Method test_mappingproxy

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

Source from the content-addressed store, hash-verified

2347 "Old versions of Python do not have this type.",
2348 )
2349 def test_mappingproxy(self):
2350 mp = types.MappingProxyType({"some_key": "some value"})
2351 assert mp == pickle_depickle(mp, protocol=self.protocol)
2352
2353 def test_dataclass(self):
2354 dataclasses = pytest.importorskip("dataclasses")

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected