Skip to content

Fix test compatibility with pytest >= 9.1 - #600

Open
hrnciar wants to merge 1 commit into
html5lib:masterfrom
hrnciar:pytest
Open

Fix test compatibility with pytest >= 9.1#600
hrnciar wants to merge 1 commit into
html5lib:masterfrom
hrnciar:pytest

Conversation

@hrnciar

@hrnciar hrnciar commented Jun 29, 2026

Copy link
Copy Markdown

Pytest 9.1 no longer accepts non-Collection iterables in parametrize. Wrap generator functions and itertools.product calls with list(). Also deduplicate the parametrize values in testLegacyQuoteAttribute. The character list had 6 duplicates between the "spec" prefix and the extended character ranges. With --strict (set in pytest.ini), pytest 9.1 enforces unique parametrization IDs and rejects them.

Assisted-by: Claude Opus 4.6

Pytest 9.1 no longer accepts non-Collection iterables in parametrize. Wrap generator
functions and itertools.product calls with list(). Also deduplicate the parametrize
values in testLegacyQuoteAttribute. The character list had 6 duplicates
between the "spec" prefix and the extended character ranges.  With --strict (set
in pytest.ini), pytest 9.1 enforces unique parametrization IDs and rejects them.

Assisted-by: Claude Opus 4.6
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant