MCPcopy Create free account
hub / github.com/pybind/pybind11 / all_pickle_protocols

Function all_pickle_protocols

tests/test_pickling.py:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def all_pickle_protocols():
14 assert pickle.HIGHEST_PROTOCOL >= 0
15 return range(pickle.HIGHEST_PROTOCOL + 1)
16
17
18@pytest.mark.parametrize("protocol", all_pickle_protocols())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected