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 rhettinger
Recipients michael.foord, r.david.murray, rhettinger
Date 2010-10-31.03:45:06
SpamBayes Score 1.7530612e-06
Marked as misclassified No
Message-id <1288496709.19.0.372730400569.issue10164@psf.upfronthosting.co.za>
In-reply-to
Content
Am discussing this with the OP on IRC and tabling it for a while so we can better think out the API.

The goal is to let assertEqual(a, b) do straight-comparions of raw bytes, but to give a nice looking diff (possibly translated with line breaks or somesuch) when the test fails.  This will be helpful in testing the email module. 

The current patch requires that assertBytesEqual be exposed and called directly so that a user can specify a split-at argument.  The purpose of that argument is to approximate the line breaking that occurs naturally in text.  The OP does not want to decode the bytes prior to the equality test, but does want a readable diff whenever the bytes represent ascii text.
History
Date User Action Args
2010-10-31 03:45:09rhettingersetrecipients: + rhettinger, r.david.murray, michael.foord
2010-10-31 03:45:09rhettingersetmessageid: <1288496709.19.0.372730400569.issue10164@psf.upfronthosting.co.za>
2010-10-31 03:45:07rhettingerlinkissue10164 messages
2010-10-31 03:45:06rhettingercreate