[issue11763] assertEqual memory issues with large text inputs

2014-08-03 Thread Ezio Melotti
Ezio Melotti added the comment: The second problem I mentioned in msg134530 got fixed in #18996, making the patches on this issue obsolete. Since the other problem is now tracked in #19217, I'm going to close this. -- stage: patch review -> resolved status: open -> closed _

[issue11763] assertEqual memory issues with large text inputs

2013-10-13 Thread Ezio Melotti
Ezio Melotti added the comment: Attached an updated patch that addresses Serhiy comments. The tests in the previous patch have been committed already, so this might need new tests. The first problem I mentioned in msg134530 has been reported in #19217. -- Added file: http://bugs.pytho

[issue11763] assertEqual memory issues with large text inputs

2013-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: There are some tests in the issue11763-2.diff patch. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue11763] assertEqual memory issues with large text inputs

2013-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I left comments on Rietveld. Tests needed. -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker ___ ___

[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Michael Foord
Michael Foord added the comment: Sorry, ignore that. I see that the patch already passes maxDiff to truncate_str. -- ___ Python tracker ___ _

[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Michael Foord
Michael Foord added the comment: The basic idea of the patch is good, but instead of introducing _MAX_LENGTH, maxDiff should be reused. -- ___ Python tracker ___ __

[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Sara Magliacane
Sara Magliacane added the comment: Here is a small patch addressing the second point of the last message, but the tests are still missing. -- nosy: +sara.magliacane Added file: http://bugs.python.org/file22462/issue11763_safe_repr.diff ___ Python tr

[issue11763] assertEqual memory issues with large text inputs

2011-04-27 Thread Ezio Melotti
Ezio Melotti added the comment: I committed a slightly modified version of the patch, so the issue should be fixed now. There are two related problems though: 1) difflib is used in other places, so those should probably be checked too; 2) _baseAssertEqual should check if the len of the msg (or

[issue11763] assertEqual memory issues with large text inputs

2011-04-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8dbf661c0a63 by Ezio Melotti in branch '2.7': #11763: don't use difflib in TestCase.assertMultiLineEqual if the strings are too long. http://hg.python.org/cpython/rev/8dbf661c0a63 New changeset 04e64f77c6c7 by Ezio Melotti in branch '3.1': #11763:

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: michael.foord -> ezio.melotti components: +Library (Lib) nosy: +rhettinger stage: -> patch review type: -> behavior Added file: http://bugs.python.org/file21536/issue11763-2.diff ___ Python tracker

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rather than hardwiring `self.addCleanup(lambda: setattr(self, '_diffThreshold', 2**16))`, you should retrieve the previous value. -- ___ Python tracker __

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Ezio Melotti
Ezio Melotti added the comment: Attached patch adds a _diffThreshold attribute of 2**16 and uses _baseAssertEqual whenever one of the two string is longer than 2**16 chars. -- keywords: +patch Added file: http://bugs.python.org/file21535/issue11763.diff ___

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Michael Foord
New submission from Michael Foord : >>> s = "x" * (2**29) >>> case.assertEqual(s + "a", s + "b") Traceback (most recent call last): File "", line 1, in File "/home/antoine/cpython/default/Lib/unittest/case.py", line 643, in assertEqual assertion_func(first, second, msg=msg) File "/home/antoin