def test_bad_version() -> None:
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n        [meta]\n        version = -1')
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n        [meta]\n        version = 1')
def test_bad_version() -> None:
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n        [meta]\n        version = -1')
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n        [meta]\n        version = 1')