Skip to content

tests/test_basic: Fix to work with newer versions of pytest#3597

Open
rpurdie wants to merge 1 commit into
pallets:mainfrom
rpurdie:main
Open

tests/test_basic: Fix to work with newer versions of pytest#3597
rpurdie wants to merge 1 commit into
pallets:mainfrom
rpurdie:main

Conversation

@rpurdie

@rpurdie rpurdie commented Jun 15, 2026

Copy link
Copy Markdown

Fix an error with newer versions of pytest (9.1.0) by converting the generator into a tuple to resolve:

E pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
E Test: tests/test_basic.py::test_boolean_conversion, argvalues type: chain
E Please convert to a list or tuple.
E See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
ERROR: tests/test_basic.py:tests/test_basic.py

Fix an error with newer versions of pytest (9.1.0) by converting the
generator into a tuple to resolve:

E   pytest.PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.
E   Test: tests/test_basic.py::test_boolean_conversion, argvalues type: chain
E   Please convert to a list or tuple.
E   See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
ERROR: tests/test_basic.py:tests/test_basic.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant