You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using non-:class:`~collections.abc.Collection` iterables (such as generators, iterators, or custom iterable objects) for the ``argvalues`` parameter in :ref:`@pytest.mark.parametrize <pytest.mark.parametrize ref>` and :meth:`metafunc.parametrize <pytest.Metafunc.parametrize>` is now deprecated.
2
+
3
+
These iterables get exhausted after the first iteration,
4
+
leading to tests getting unexpectedly skipped in cases such as running :func:`pytest.main()` multiple times,
5
+
using class-level parametrize decorators,
6
+
or collecting tests multiple times.
7
+
8
+
See :ref:`parametrize-iterators` for details and suggestions.
0 commit comments