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

Function check_options_class_pickling

python/pyarrow/tests/test_csv.py:117–122  ·  view source on GitHub ↗
(cls, pickler, **attr_values)

Source from the content-addressed store, hash-verified

115
116# The various options classes need to be picklable for dataset
117def check_options_class_pickling(cls, pickler, **attr_values):
118 opts = cls(**attr_values)
119 new_opts = pickler.loads(pickler.dumps(opts,
120 protocol=pickler.HIGHEST_PROTOCOL))
121 for name, value in attr_values.items():
122 assert getattr(new_opts, name) == value
123
124
125class InvalidRowHandler:

Callers 3

test_read_optionsFunction · 0.70
test_parse_optionsFunction · 0.70
test_convert_optionsFunction · 0.70

Calls 2

loadsMethod · 0.80
dumpsMethod · 0.80

Tested by

no test coverage detected