Restored ommitted TypeError check

This commit is contained in:
David Dalcino
2021-07-22 11:34:39 -07:00
parent f5855b84e8
commit fd8bebdad2

View File

@@ -69,6 +69,10 @@ def test_versions(
assert versions.latest() == expect_last assert versions.latest() == expect_last
assert bool(versions) == expect_bool assert bool(versions) == expect_bool
with pytest.raises(TypeError) as pytest_wrapped_e:
format(versions, "x")
assert pytest_wrapped_e.type == TypeError
@pytest.fixture @pytest.fixture
def spec_regex() -> re.Pattern: def spec_regex() -> re.Pattern: