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

Method test_partial

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

Source from the content-addressed store, hash-verified

446 self.assertEqual(new_method(41), 7)
447
448 def test_partial(self):
449 partial_obj = functools.partial(min, 1)
450 partial_clone = pickle_depickle(partial_obj, protocol=self.protocol)
451 self.assertEqual(partial_clone(4), 1)
452
453 @pytest.mark.skipif(
454 platform.python_implementation() == "PyPy",

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected