Skip to content

Fix compability with pytest 9.1 - #79

Merged
Viicos merged 1 commit into
pydantic:mainfrom
danigm:pytest-9.1
Sep 16, 2026
Merged

Viicos merged 1 commit into
pydantic:mainfrom
danigm:pytest-9.1

Conversation

@danigm

@danigm danigm commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

The use of generators in parametrize is deprecated. This patch just convert generators find_examples and find_cases to plain list.

https://docs.pytest.org/en/stable/deprecations.html#non-collection-iterables-in-pytest-mark-parametrize

The use of generators in parametrize is deprecated. This patch just
convert generators find_examples and find_cases to plain list.

https://docs.pytest.org/en/stable/deprecations.html#non-collection-iterables-in-pytest-mark-parametrize
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Sep 16, 2026
https://build.opensuse.org/request/show/1378157
by user dgarcia + anag_factory
- Make it compatible with python3.14 and pytest 9.1
- Add upstream patches:
  * python314.patch gh#pydantic/pytest-examples#67
  * 0001-Make-compatible-with-pytest-9.1.patch gh#pydantic/pytest-examples#79
@Viicos Viicos changed the title Make compatible with pytest 9.1 Fix compability with pytest 9.1 Sep 16, 2026
@Viicos

Viicos commented Sep 16, 2026

Copy link
Copy Markdown
Member

Thanks @danigm

@Viicos
Viicos merged commit cf265a5 into pydantic:main Sep 16, 2026
10 checks passed
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.

2 participants