Skip to content

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

Open
rpurdie wants to merge 18 commits into
pallets:stablefrom
rpurdie:main
Open

tests/test_basic: Fix to work with newer versions of pytest#3597
rpurdie wants to merge 18 commits into
pallets:stablefrom
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

wallstreetio and others added 18 commits May 17, 2026 13:18
Fix regression introduced in 8.4.0 by pallets#3126 and properly fix pallets#3043 and pallets#3502
Closes pallets#2983

Co-authored-by: Rowlando13 <67291205+Rowlando13@users.noreply.github.com>
Co-authored-by: Kevin Deldycke <kdeldycke@users.noreply.github.com>
…pallets#3563)

Divergence were introduced while migrating `CHANGES.rst` to `CHANGES.md` in pallets#3559 (`stable`) and pallets#3560 (`main`).
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
@kdeldycke kdeldycke changed the base branch from main to stable June 25, 2026 06:52
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.

7 participants