fix 310 error message

This commit is contained in:
Will McGugan 2021-10-06 13:59:05 +01:00
parent 3da0e79e3c
commit b5fc0f8dd8
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ def test_attrs_broken_310():
del foo.bar
result = pretty_repr(foo)
print(repr(result))
expected = "'Foo' object has no attribute 'bar'"
expected = "Foo(bar=AttributeError(\"'Foo' object has no attribute 'bar'\"))"
assert result == expected