[issue30839] Larger and/or configurable _MAX_LENGTH for unittest messages

2017-07-05 Thread R. David Murray
R. David Murray added the comment: Yes, setting _MAX_LENGTH can be an independent feature request. The default will not be changed, however, since it is the most useful default given that assertEquals in general produces a much more useful diff output in addition to the one-line summary. Yo

[issue30839] Larger and/or configurable _MAX_LENGTH for unittest messages

2017-07-03 Thread Maarten ter Huurne
New submission from Maarten ter Huurne: In a unit test for one of my projects I am comparing tree-structured objects using assertEqual(). Because there can be a few nested levels, the repr() string can exceed the _MAX_LENGTH which is just 80 characters. Not by much, but enough to get shortened