We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 815596e commit c8abbb3Copy full SHA for c8abbb3
tests/test_pretty.py
@@ -668,7 +668,10 @@ class Foo:
668
del foo.bar
669
result = pretty_repr(foo)
670
print(repr(result))
671
- expected = "Foo(bar=AttributeError(\"'Foo' object has no attribute 'bar'\"))"
+ if sys.version_info >= (3, 13):
672
+ expected = "Foo(\n bar=AttributeError(\"'tests.test_pretty.test_attrs_broken_310.<locals>.Foo' object has no attribute 'bar'\")\n)"
673
+ else:
674
+ expected = "Foo(bar=AttributeError(\"'Foo' object has no attribute 'bar'\"))"
675
assert result == expected
676
677
0 commit comments