Fix tests dependent on the exception raised by non-settable descriptors.
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 7eea465..05fd72e 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -2712,7 +2712,7 @@
     def cant(x, dict):
         try:
             x.__dict__ = dict
-        except TypeError:
+        except (AttributeError, TypeError):
             pass
         else:
             raise TestFailed, "shouldn't allow %r.__dict__ = %r" % (x, dict)