[Python-ideas] Testcase.assertsequenceequal() suggestion

Floris Bruynooghe floris.bruynooghe at gmail.com
Thu Apr 8 22:47:46 CEST 2010


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.

Regards
Floris

-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org



More information about the Python-ideas mailing list