mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Issue 2517: Allow unicode messages in Exceptions again by correctly bypassing the instance dictionary when looking up __unicode__ on new-style classes
This commit is contained in:
parent
dbc5987e2f
commit
524b7773cc
3 changed files with 57 additions and 9 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue