<br><br><div class="gmail_quote">On 8 April 2010 23:33, Raymond Hettinger <span dir="ltr"><<a href="mailto:raymond.hettinger@gmail.com">raymond.hettinger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;"><div class="im"><br><div><div>On Apr 8, 2010, at 3:15 PM, Michael Foord wrote:</div><br><blockquote type="cite"><br><br><div class="gmail_quote">On 8 April 2010 21:47, Floris Bruynooghe <span dir="ltr"><<a href="mailto:floris.bruynooghe@gmail.com" target="_blank">floris.bruynooghe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br>
<br>
I've found myself modifying the<br>
unittest.TestCase.assertSequenceEqual() method to suppress the diff of<br>
the two sequences if the diff is more then a few lines and was<br>
wondering if this was something worth considering in the stdlib in<br>
some form or another.  The resulting message still contains useful<br>
information since it still prints the first differing elements, and it<br>
avoids flooding the screen with lots of data for long sequences.<br></blockquote><div><br><br>That sounds useful. Please post a feature request on the bug tracker - preferably with a patch including tests.<br><font color="#000000"><font color="#144fae"><br>
</font></font></div></div></blockquote><br></div></div><div>+1</div><div><br></div><div>Perhaps this can be considered a bug fix -- spewing a core dump in the test summary not considered helpful.</div><div><br></div></div>
</blockquote><div><br><br>I agree. Failure messages should be useful...<br><br>Michael<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;"><div></div><font color="#888888"><div><br></div><div>Raymond</div></font></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a><br>
<br><br>