diff options
-rw-r--r-- | Lib/test/test_descr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 92f79d5..9f731cd 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -481,7 +481,7 @@ def objects(): verify(not hasattr(a, "foo")) try: a.foo = 12 - except TypeError: + except (AttributeError, TypeError): pass else: verify(0, "object() should not allow setting a foo attribute") |