We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8726ed2 commit d3d0189Copy full SHA for d3d0189
tests/test_pickling.py
@@ -9,11 +9,12 @@
9
from pybind11_tests import pickling as m
10
11
12
-def test_assumptions():
+def all_pickle_protocols():
13
assert pickle.HIGHEST_PROTOCOL >= 0
14
+ return range(pickle.HIGHEST_PROTOCOL + 1)
15
16
-@pytest.mark.parametrize("protocol", range(pickle.HIGHEST_PROTOCOL + 1))
17
+@pytest.mark.parametrize("protocol", all_pickle_protocols())
18
def test_pickle_simple_callable(protocol):
19
assert m.simple_callable() == 20220426
20
serialized = pickle.dumps(m.simple_callable, protocol=protocol)
0 commit comments