Issue: pytest.mark.parametrize with generator argvalues fails on second collection
Issue: pytest.mark.parametrize with generator argvalues fails on second collection: a task in LegoFlow-SWE (Harbor dataset). When using a generator (or any non‑collection iterable, like an iterator) as the argvalues argument of @pytest.mark.parametrize , the first test collection succeeds…
The task
When using a generator (or any non‑collection iterable, like an iterator) as the `argvalues` argument of `@pytest.mark.parametrize`, the first test collection succeeds. However, any subsequent collection (e.g., a second `pytest.main()` call, or class‑level reuse) fails with an error such as:
Part of Lego-X/LegoFlow-SWE.