summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 48d1138..b73025b 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -2261,12 +2261,7 @@ def setdict():
cant(a, None)
cant(a, [])
cant(a, 1)
- try:
- del a.__dict__
- except TypeError:
- pass
- else:
- raise TestFailed, "shouldn't allow del %r.__dict__" % (a)
+ del a.__dict__ # Deleting __dict__ is allowed
# Classes don't allow __dict__ assignment
cant(C, {})