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-11-22.00:07:13
SpamBayes Score 5.123969e-07
Marked as misclassified No
Message-id <1290384434.98.0.000457945481834.issue10164@psf.upfronthosting.co.za>
In-reply-to
Content
Rejecting this one for reasons we discussed earlier.  The assertEqual() method needs to be the primary interface.  Everything else is starting to mix content and presentation (i.e. passing in separators).  The existing repr() works fine with bytes and Michael's suggested ascii() cast would be the preferred technique in the common cases.

What might be useful is a less specialized patch letting assertEqual() take an argument pointing to some repr or pre-processing function that would be called after an equality test fails but before it is diffed.  That would support a clear separation of concerns and be easily extendable by users would need something more than an ascii() cast.
History
Date User Action Args
2010-11-22 00:07:15rhettingersetrecipients: + rhettinger, r.david.murray, michael.foord
2010-11-22 00:07:14rhettingersetmessageid: <1290384434.98.0.000457945481834.issue10164@psf.upfronthosting.co.za>
2010-11-22 00:07:13rhettingerlinkissue10164 messages
2010-11-22 00:07:13rhettingercreate