"""Regression tests for https://github.com/pypa/packaging 59f183fe90..61967cca27 (packaging.version:Version)

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_p2_outcome_0():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: likely-bug)."""
    import pytest
    from packaging.version import InvalidVersion, Version
    with pytest.raises(InvalidVersion) as excinfo:
        Version('0 .0')
    assert type(excinfo.value) is InvalidVersion  # exact type: a subclass would be a behaviour change


def test_p2_outcome_1():
    """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(['１'])
    assert type(excinfo.value) is TypeError  # exact type: a subclass would be a behaviour change


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


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