Skip to content

Commit d3d0189

Browse files
committed
[ci skip] Response to question by gh-henryiii (#5580 (comment))
1 parent 8726ed2 commit d3d0189

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_pickling.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
from pybind11_tests import pickling as m
1010

1111

12-
def test_assumptions():
12+
def all_pickle_protocols():
1313
assert pickle.HIGHEST_PROTOCOL >= 0
14+
return range(pickle.HIGHEST_PROTOCOL + 1)
1415

1516

16-
@pytest.mark.parametrize("protocol", range(pickle.HIGHEST_PROTOCOL + 1))
17+
@pytest.mark.parametrize("protocol", all_pickle_protocols())
1718
def test_pickle_simple_callable(protocol):
1819
assert m.simple_callable() == 20220426
1920
serialized = pickle.dumps(m.simple_callable, protocol=protocol)

0 commit comments

Comments
 (0)