This commit is contained in:
Lynn Root 2015-02-07 14:03:17 -06:00
parent 6a1a740c46
commit ab6b3e9b4b
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ def _transform_attrs(cl):
a = Attribute.from_counting_attr(name=attr_name, ca=ca)
if had_default is True and a.default is NOTHING:
raise ValueError(
"No mandatory attributes allowed after an atribute with a "
"No mandatory attributes allowed after an attribute with a "
"default value or factory. Attribute in question: {a!r}"
.format(a=a)
)

View File

@ -90,7 +90,7 @@ class TestTransformAttrs(object):
with pytest.raises(ValueError) as e:
_transform_attrs(C)
assert (
"No mandatory attributes allowed after an atribute with a "
"No mandatory attributes allowed after an attribute with a "
"default value or factory. Attribute in question: Attribute"
"(name='y', default=NOTHING, validator=None, no_repr=False, "
"no_cmp=False, no_hash=False, no_init=False)",