summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2008-07-08 14:08:04 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2008-07-08 14:08:04 (GMT)
commit524b7773ccf6f462444c22da19cf138f0c6416e4 (patch)
tree12d989a7fb762bb204889e285c6119c7ad8bd7cb /Lib
parentdbc5987e2fef558cd1410f79dbec4262b8a80d66 (diff)
downloadcpython-524b7773ccf6f462444c22da19cf138f0c6416e4.zip
cpython-524b7773ccf6f462444c22da19cf138f0c6416e4.tar.gz
cpython-524b7773ccf6f462444c22da19cf138f0c6416e4.tar.bz2
Issue 2517: Allow unicode messages in Exceptions again by correctly bypassing the instance dictionary when looking up __unicode__ on new-style classes
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_exceptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 77a6018..8fa466c 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -342,6 +342,7 @@ class ExceptionTests(unittest.TestCase):
self.failUnless(unicode(Exception))
self.failUnless(str(Exception('a')))
self.failUnless(unicode(Exception(u'a')))
+ self.failUnless(unicode(Exception(u'\xe1')))
def test_main():