Commit bd915fb
committed
Pass a list to parametrize in test_docs_examples (pytest 9.1.0 compat)
pytest 9.1.0 deprecates passing a non-Collection iterable (e.g. a generator)
to pytest.mark.parametrize, raising PytestRemovedIn10Warning. With
filterwarnings = ["error"] this fails collection. find_examples() returns a
generator; materialize it as a list.
Same fix as #2889 on v1.x. main's CI matrix uses locked resolution so this
is not currently failing there, but it future-proofs against a pytest bump.1 parent 47bbab3 commit bd915fb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments