commit | b180c06a54a9eb0012f8102e993b9c3e8f1d7f21 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Wed Apr 20 19:41:36 2005 +0000 |
committer | Barry Warsaw <barry@python.org> | Wed Apr 20 19:41:36 2005 +0000 |
tree | 661a16bb6215f6dfe843d05dae351f75968e7120 | |
parent | e890682e521ad90eac91196d151b796edf00c3fa [diff] [blame] |
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)