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

Function check_options_class_pickling

python/pyarrow/tests/test_json.py:66–71  ·  view source on GitHub ↗
(cls, pickler, **attr_values)

Source from the content-addressed store, hash-verified

64
65
66def check_options_class_pickling(cls, pickler, **attr_values):
67 opts = cls(**attr_values)
68 new_opts = pickler.loads(pickler.dumps(opts,
69 protocol=pickler.HIGHEST_PROTOCOL))
70 for name, value in attr_values.items():
71 assert getattr(new_opts, name) == value
72
73
74def test_read_options(pickle_module):

Callers 2

test_read_optionsFunction · 0.70
test_parse_optionsFunction · 0.70

Calls 2

loadsMethod · 0.80
dumpsMethod · 0.80

Tested by

no test coverage detected