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

Method test_builtin_function

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

Source from the content-addressed store, hash-verified

843 self.assertEqual(type(NotImplemented), res)
844
845 def test_builtin_function(self):
846 # Note that builtin_function_or_method are special-cased by cloudpickle
847 # only in python2.
848
849 # builtin function from the __builtin__ module
850 assert pickle_depickle(zip, protocol=self.protocol) is zip
851
852 from os import mkdir
853
854 # builtin function from a "regular" module
855 assert pickle_depickle(mkdir, protocol=self.protocol) is mkdir
856
857 def test_builtin_type_constructor(self):
858 # This test makes sure that cloudpickling builtin-type

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected