Testcase.assertsequenceequal() suggestion

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

On 8 April 2010 21:47, Floris Bruynooghe <floris.bruynooghe@gmail.com>wrote:
That sounds useful. Please post a feature request on the bug tracker - preferably with a patch including tests. All the best, Michael Foord

On 8 April 2010 23:33, Raymond Hettinger <raymond.hettinger@gmail.com>wrote:
I agree. Failure messages should be useful... Michael
Raymond

On Thu, Apr 08, 2010 at 11:15:32PM +0100, Michael Foord wrote:
http://bugs.python.org/issue8351 Regards Floris -- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org

On 8 April 2010 21:47, Floris Bruynooghe <floris.bruynooghe@gmail.com>wrote:
That sounds useful. Please post a feature request on the bug tracker - preferably with a patch including tests. All the best, Michael Foord

On 8 April 2010 23:33, Raymond Hettinger <raymond.hettinger@gmail.com>wrote:
I agree. Failure messages should be useful... Michael
Raymond

On Thu, Apr 08, 2010 at 11:15:32PM +0100, Michael Foord wrote:
http://bugs.python.org/issue8351 Regards Floris -- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org
participants (3)
-
Floris Bruynooghe
-
Michael Foord
-
Raymond Hettinger