homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:00jaap.karssenbergsetrecipients: + jaap.karssenberg
2012年02月15日 21:00:00jaap.karssenbergsetmessageid: <1329339600.71.0.863718430096.issue14025@psf.upfronthosting.co.za>
2012年02月15日 21:00:00jaap.karssenberglinkissue14025 messages
2012年02月15日 20:59:59jaap.karssenbergcreate

AltStyle によって変換されたページ (->オリジナル) /