diff options
author | James Hilton-Balfe <gobot1234yt@gmail.com> | 2023-07-22 00:24:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 00:24:26 (GMT) |
commit | cdeb1a6caad5e3067f01d6058238803b8517f9de (patch) | |
tree | 952950c42ffd25901e8b9319120f5e57ab9507bd /Lib/test/test_descrtut.py | |
parent | 41ca16455188db806bfc7037058e8ecff2755e6c (diff) | |
download | cpython-cdeb1a6caad5e3067f01d6058238803b8517f9de.zip cpython-cdeb1a6caad5e3067f01d6058238803b8517f9de.tar.gz cpython-cdeb1a6caad5e3067f01d6058238803b8517f9de.tar.bz2 |
gh-96663: Add a better error message for __dict__-less classes setattr (#103232)
Diffstat (limited to 'Lib/test/test_descrtut.py')
-rw-r--r-- | Lib/test/test_descrtut.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descrtut.py b/Lib/test/test_descrtut.py index 7796031..13e3ea4 100644 --- a/Lib/test/test_descrtut.py +++ b/Lib/test/test_descrtut.py @@ -139,7 +139,7 @@ instance variables cannot be assigned to: >>> a.x1 = 1 Traceback (most recent call last): File "<stdin>", line 1, in ? - AttributeError: 'defaultdict2' object has no attribute 'x1' + AttributeError: 'defaultdict2' object has no attribute 'x1' and no __dict__ for setting new attributes >>> """ |