From b5fc0f8dd830c55f3e27aeefdd496fed9d24129e Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 6 Oct 2021 13:59:05 +0100 Subject: [PATCH] fix 310 error message --- tests/test_pretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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