[Python-ideas] Testcase.assertsequenceequal() suggestion

Floris Bruynooghe floris.bruynooghe at gmail.com
Fri Apr 9 01:39:26 CEST 2010


On Thu, Apr 08, 2010 at 11:15:32PM +0100, Michael Foord wrote:
> On 8 April 2010 21:47, Floris Bruynooghe <floris.bruynooghe at gmail.com>wrote:
> > 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.

http://bugs.python.org/issue8351

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