Fix typo
This commit is contained in:
parent
6a1a740c46
commit
ab6b3e9b4b
|
@ -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)
|
||||
)
|
||||
|
|
|
@ -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)",
|
||||
|
|
Loading…
Reference in New Issue