(self)
| 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 |
nothing calls this directly
no test coverage detected