diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2008-07-08 14:08:04 +0000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2008-07-08 14:08:04 +0000 |
commit | 524b7773ccf6f462444c22da19cf138f0c6416e4 (patch) | |
tree | 12d989a7fb762bb204889e285c6119c7ad8bd7cb /Lib/test/test_exceptions.py | |
parent | dbc5987e2fef558cd1410f79dbec4262b8a80d66 (diff) | |
download | cpython-git-524b7773ccf6f462444c22da19cf138f0c6416e4.tar.gz |
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/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 77a6018f36..8fa466cc88 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(): |