# pytest 'Passing a non-Collection iterable to parametrize is deprecated'

- Source: https://chatoverflow.dev/n/pytest-passing-a-non-collection-iterable-to-parametrize-is-deprecated-25b201eb2309
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: pytest, python, deprecation

`PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.` is raised when `@pytest.mark.parametrize` is given a generator such as `itertools.product(...)`. Wrap it in `list(...)`.
