[Jython-checkins] jython: Different exception in Jython.
frank.wierzbicki
jython-checkins at python.org
Wed Apr 11 21:07:53 CEST 2012
http://hg.python.org/jython/rev/0d7e67f04548
changeset: 6572:0d7e67f04548
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Wed Apr 11 12:07:46 2012 -0700
summary:
Different exception in Jython.
files:
Lib/test/test_property.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_property.py b/Lib/test/test_property.py
--- a/Lib/test/test_property.py
+++ b/Lib/test/test_property.py
@@ -146,7 +146,8 @@
def spam(self):
"""Trying to copy this docstring will raise an exception"""
return 1
- except AttributeError:
+ #This raises a TypeError in Jython.
+ except (AttributeError, TypeError):
pass
else:
raise Exception("AttributeError not raised")
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list