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

Function test_pickle_global_functions

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

Source from the content-addressed store, hash-verified

306
307
308def test_pickle_global_functions(pickle_module):
309 # Pickle global wrappers (manual or automatic) of registered functions
310 for name in pc.list_functions():
311 try:
312 func = getattr(pc, name)
313 except AttributeError:
314 # hash_aggregate functions are not exported as callables.
315 continue
316 reconstructed = pickle_module.loads(pickle_module.dumps(func))
317 assert reconstructed is func
318
319
320def test_function_attributes():

Callers

nothing calls this directly

Calls 2

loadsMethod · 0.80
dumpsMethod · 0.80

Tested by

no test coverage detected