"""Regression tests for pypa/packaging #1082: perf: Add fast path for parsing simple versions (digits and dots only)

Generated by Breakwater. Each test passed on the base commit and failed on the head commit when
generated; it pins the old behaviour.
"""


def test_1082_p2_outcome_0():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: likely-bug)."""
    import pytest
    from packaging.version import Version
    with pytest.raises(TypeError) as excinfo:
        Version(['1'])
    assert type(excinfo.value) is TypeError  # exact type: a subclass would be a behaviour change
