Exception behaviour changed
known regression: oversized-int-exceptionVersion("100000000000000000000000000000000000000000…000000.0.1" (4,305 chars))Packaging.version.InvalidVersion is a subclass of builtins.ValueError.
The PR adds a fast‑path for versions that contain only digits and dots. In that path it explicitly catches a `ValueError` from `int()` conversion and re‑raises it as `packaging.version.InvalidVersion`. This makes the exception type more specific and matches the library’s own error hierarchy, so the new behavior is deliberate.
if _SIMPLE_VERSION_INDICATORS.issuperset(version): self._release = tuple(map(int, version.split('.')))Found by: hostile mutation · also caught by: Mutations of the PR's own test strings
ran onToken Factory Sandboxes · image cdd80561-4ef0-4ca1-b645-b13306e326c6
No regression test: adjudicated intended: no test pins the old behaviour.