Skip to content

Commit 15803df

Browse files
mkitticlaude
andcommitted
Wrap parametrize itertools.product in tuple
pytest 9.1 raises PytestRemovedIn10Warning for non-Collection iterables passed to parametrize, which becomes an error under filterwarnings=error and aborts test collection. Wrap in tuple() to match main. Co-Authored-By: Claude Opus 4.8 <[email protected]>
1 parent d33d823 commit 15803df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎numcodecs/tests/test_checksum32.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
)
5555

5656

57-
@pytest.mark.parametrize(("codec", "arr"), itertools.product(codecs, arrays))
57+
@pytest.mark.parametrize(("codec", "arr"), tuple(itertools.product(codecs, arrays)))
5858
def test_encode_decode(codec, arr):
5959
check_encode_decode(arr, codec)
6060

6161

62-
@pytest.mark.parametrize(("codec", "arr"), itertools.product(codecs, arrays))
62+
@pytest.mark.parametrize(("codec", "arr"), tuple(itertools.product(codecs, arrays)))
6363
def test_errors(codec, arr):
6464
enc = codec.encode(arr)
6565
with pytest.raises(RuntimeError):

0 commit comments

Comments
 (0)