[issue12038] assertEqual doesn't display newline differences quite well

Terry J. Reedy report at bugs.python.org
Sat May 14 07:22:15 CEST 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

A possible fix is to condense the output by omitting stuff in the center rather than as the end:
"x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx...x\nx\nx\nx\nx\nx\nx\nx\nx\nx\n"
"x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx...x\nx\nx\nx\nx\nx\nx\nx\nx\nx\r\n"
would be clear.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12038>
_______________________________________


More information about the Python-bugs-list mailing list