[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Note that we also have a bit of a performance issue in prettyprint / difflib when the diffs are very big. It can spend a minute or more constructing the diff - only to throw it away because it is too big... -- ___ P

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Still some tests and documentation needed. Leaving issue open until it is done. (Also needs backporting to unittest2...) -- ___ Python tracker _

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Modified again in revision 81752. Assertion methods now inform you when omitting an excessively long diff. -- ___ Python tracker ___ ___

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Modified again in revision 81739. No longer uses a new argument, but a class attribute instead. All assert methods that generate failure messages with difflib truncate messages. -- ___ Python tracker

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Slightly modified version committed revision 81728. (It truncates large diffs rather than omitting them and allows max_diff to be None - meaning no maximum.) Needs some extended tests and needs documenting. -- ___ P

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal stage: -> patch review versions: +Python 3.2 -Python 3.3 ___ Python tracker ___

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-04-08 Thread Floris Bruynooghe
New submission from Floris Bruynooghe : This patch adds the ability to suppress large diffs in the failure message of TestCase.assertSequenceEqual(). The maximum size of the diff is customisable as an new keyword parameter with hopefully a sensible default. -- components: Library (Lib