Closed pharaun closed 8 years ago
This is technically not the correct place for a fix, the fix should go into IPython itself.
Specifically: https://github.com/ipython/ipython/blob/master/IPython/core/ultratb.py#L533-L538
Will attempt to patch but not sure how to fix it for now.
Here's some smallish repro steps:
# -*- coding: utf-8 -*-
import testify
class UnicodeFailTestCase(testify.TestCase):
def test_unicode(self):
testify.assert_equal(u'é', u'ü')
Using:
Python 2.6.7
testify==0.5.3
ipdb==0.8
ipython==1.1.0
https://pythonhosted.org/kitchen/unicode-frustrations.html#frustration-5-exceptions <- outlines the issue mittonk reproduced.
Confirmed with latest testify and latest ipython in python2
It passes however in python3
Versions:
Symptoms:
Reason:
Patch:
Testing:
I have not had time to write a proper test but to test this, just pass in a "string/traceback" with encoded unicode character and watch it crash on IPython 1.1.0