Message153434
| Author |
jaap.karssenberg |
| Recipients |
jaap.karssenberg |
| Date |
2012年02月15日.20:59:59 |
| SpamBayes Score |
5.3749976e-05 |
| Marked as misclassified |
No |
| Message-id |
<1329339600.71.0.863718430096.issue14025@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 the two will just give the default message that they differ without the diff. THis is due to the way the dispatch checks types. Probably need to make an exception for comparing str with unicode.
Note that if the contents of both strings are the same, the assert will regard them equal, so it is not a strict check on the type perse. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月15日 21:00:00 | jaap.karssenberg | set | recipients:
+ jaap.karssenberg |
| 2012年02月15日 21:00:00 | jaap.karssenberg | set | messageid: <1329339600.71.0.863718430096.issue14025@psf.upfronthosting.co.za> |
| 2012年02月15日 21:00:00 | jaap.karssenberg | link | issue14025 messages |
| 2012年02月15日 20:59:59 | jaap.karssenberg | create |
|