summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descrtut.py
diff options
context:
space:
mode:
authorJames Hilton-Balfe <gobot1234yt@gmail.com>2023-07-22 00:24:26 (GMT)
committerGitHub <noreply@github.com>2023-07-22 00:24:26 (GMT)
commitcdeb1a6caad5e3067f01d6058238803b8517f9de (patch)
tree952950c42ffd25901e8b9319120f5e57ab9507bd /Lib/test/test_descrtut.py
parent41ca16455188db806bfc7037058e8ecff2755e6c (diff)
downloadcpython-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.py2
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
>>>
"""