Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:

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.

----------
resolution: later -> rejected
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10164>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to