FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix test compatibility with pytest >= 9.1 by hrnciar · Pull Request #600 · html5lib/html5lib-python · GitHub

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 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL