[Python-ideas] Testcase.assertsequenceequal() suggestion

Michael Foord fuzzyman at gmail.com
Fri Apr 9 00:15:32 CEST 2010


On 8 April 2010 21:47, Floris Bruynooghe <floris.bruynooghe at gmail.com>wrote:

> Hi
>
> I've found myself modifying the
> unittest.TestCase.assertSequenceEqual() method to suppress the diff of
> the two sequences if the diff is more then a few lines and was
> wondering if this was something worth considering in the stdlib in
> some form or another.  The resulting message still contains useful
> information since it still prints the first differing elements, and it
> avoids flooding the screen with lots of data for long sequences.
>


That sounds useful. Please post a feature request on the bug tracker -
preferably with a patch including tests.

All the best,

Michael Foord


>
> Regards
> Floris
>
> --
> Debian GNU/Linux -- The Power of Freedom
> www.debian.org | www.gnu.org | www.kernel.org
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
http://www.ironpythoninaction.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20100408/95ea1bad/attachment.html>


More information about the Python-ideas mailing list