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

Method test_method_descriptors

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

Source from the content-addressed store, hash-verified

523 self.assertEqual(A.test_cm(), "cm")
524
525 def test_method_descriptors(self):
526 f = pickle_depickle(str.upper)
527 self.assertEqual(f("abc"), "ABC")
528
529 def test_instancemethods_without_self(self):
530 class F:

Callers

nothing calls this directly

Calls 2

pickle_depickleFunction · 0.85
fFunction · 0.85

Tested by

no test coverage detected