MCPcopy Create free account
hub / github.com/apache/arrow / test_pickle_functions

Function test_pickle_functions

python/pyarrow/tests/test_compute.py:297–305  ·  view source on GitHub ↗
(pickle_module)

Source from the content-addressed store, hash-verified

295
296
297def test_pickle_functions(pickle_module):
298 # Pickle registered functions
299 for name in pc.list_functions():
300 func = pc.get_function(name)
301 reconstructed = pickle_module.loads(pickle_module.dumps(func))
302 assert type(reconstructed) is type(func)
303 assert reconstructed.name == func.name
304 assert reconstructed.arity == func.arity
305 assert reconstructed.num_kernels == func.num_kernels
306
307
308def test_pickle_global_functions(pickle_module):

Callers

nothing calls this directly

Calls 3

loadsMethod · 0.80
dumpsMethod · 0.80
typeEnum · 0.50

Tested by

no test coverage detected