diff --git a/tests/test_pretty.py b/tests/test_pretty.py index f573b20f..faf276a1 100644 --- a/tests/test_pretty.py +++ b/tests/test_pretty.py @@ -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