[issue14025] unittest.TestCase.assertEqual does not show diff when comparing str with unicode

2012-02-17 Thread Jaap Karssenberg
Jaap Karssenberg added the comment: On Fri, Feb 17, 2012 at 1:23 AM, Ezio Melotti wrote: > > Ezio Melotti added the comment: > > If you really want the diff you could use assertMultiLineEqual, but even > on Python 2 you shouldn't mix str and unicode. I would rather fix

[issue14025] unittest.TestCase.assertEqual does not show diff when comparing str with unicode

2012-02-16 Thread Jaap Karssenberg
Jaap Karssenberg added the comment: On Thu, Feb 16, 2012 at 12:29 AM, Michael Foord wrote: > The type check in assertEqual, that delegates to the different comparison > methods, is strict because we can't know that using the error message > algorithms is sane for arbitrary subcl

[issue14025] unittest.TestCase.assertEqual does not show diff when comparing str with unicode

2012-02-15 Thread Jaap Karssenberg
New submission from Jaap Karssenberg : When you compare two multiline strings with unittest.TestCase.assertEqual it is supposed to dispatch to assertMultiLineEqual and show a diff when the strings differ. However this only works for two string of the same type (str or unicode). But mixing