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 michael.foord
Recipients michael.foord, r.david.murray, rhettinger
Date 2010-11-01.03:13:18
SpamBayes Score 2.8857522e-07
Marked as misclassified No
Message-id <1288581201.09.0.360156829262.issue10164@psf.upfronthosting.co.za>
In-reply-to
Content
David - would you get a good approximation of what you want simply with:

    self.assertEqual(ascii(first), ascii(second))

(This actually returns "b'first'" "b'second'" so you may want a convenience function that chops the leading and trailing b'/')

As ascii returns unicode it would automatically delegate to assertMultilineEqual.

The obvious way to hook this up by default for assertEqual is having the split-character as '\n'. This would not be meaningful for using assertEqual to compare bytes that *aren't* text.
History
Date User Action Args
2010-11-01 03:13:21michael.foordsetrecipients: + michael.foord, rhettinger, r.david.murray
2010-11-01 03:13:21michael.foordsetmessageid: <1288581201.09.0.360156829262.issue10164@psf.upfronthosting.co.za>
2010-11-01 03:13:19michael.foordlinkissue10164 messages
2010-11-01 03:13:18michael.foordcreate