"""Regression tests for pypa/packaging #1236: perf: simply work done in parse_tag a bit

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_1236_p2_outcome_0():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: needs-human)."""
    import pytest
    from packaging.tags import parse_tag
    with pytest.raises(ValueError) as excinfo:
        parse_tag('')
    assert type(excinfo.value) is ValueError  # exact type: a subclass would be a behaviour change


def test_1236_p2_outcome_1():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: needs-human)."""
    import pytest
    from packaging.tags import parse_tag
    with pytest.raises(ValueError) as excinfo:
        parse_tag('-')
    assert type(excinfo.value) is ValueError  # exact type: a subclass would be a behaviour change


def test_1236_p2_outcome_2():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: needs-human)."""
    import pytest
    from packaging.tags import parse_tag
    with pytest.raises(ValueError) as excinfo:
        parse_tag('- ')
    assert type(excinfo.value) is ValueError  # exact type: a subclass would be a behaviour change


def test_1236_p2_outcome_3():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: needs-human)."""
    import pytest
    from packaging.tags import parse_tag
    with pytest.raises(ValueError) as excinfo:
        parse_tag('-\xa0')
    assert type(excinfo.value) is ValueError  # exact type: a subclass would be a behaviour change


def test_1236_p2_outcome_4():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: needs-human)."""
    import pytest
    from packaging.tags import parse_tag
    with pytest.raises(ValueError) as excinfo:
        parse_tag('\x1b-')
    assert type(excinfo.value) is ValueError  # exact type: a subclass would be a behaviour change


def test_1236_p2_outcome_5():
    """Breakwater P2: base behaviour pinned (found by differential testing; label: needs-human)."""
    import pytest
    from packaging.tags import parse_tag
    with pytest.raises(ValueError) as excinfo:
        parse_tag('-ç')
    assert type(excinfo.value) is ValueError  # exact type: a subclass would be a behaviour change
