Exception behaviour changed
parse_tag(".")Packaging.tags.InvalidTag is a subclass of builtins.ValueError.
Same reasoning as C1: the new `InvalidTag` exception is documented as the intended error for empty tag components, replacing the generic `ValueError`.
.. versionadded:: 26.3Raises :class:`InvalidTag` on empty tag components.Found by: project's test strings, hostile mutation · also caught by: Plain Hypothesis, Mutations of the PR's own test strings
ran onlocal Docker · image bw-pair:d9b82063b49a1e43
No regression test: adjudicated intended: no test pins the old behaviour.
Reproduce
uv run breakwater probe --repo https://github.com/pypa/packaging --base e6cd4be75370 --head 1529771b80cf --target packaging.tags:parse_tag --backend docker --input "."3 near-duplicate classes same behaviour, inputs with extra traits
parse_tag("")base raises ValueError · head raises InvalidTagparse_tag(".\u0000")base raises ValueError · head raises InvalidTagparse_tag("Ensure platform tags normalize spaces to underscores.")base raises ValueError · head raises InvalidTag