[issue27432] Unittest truncating of error message not works

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: safe_repr() as used internally by unittest wasn't intended to truncate by default as part of its "safety". The "safe" part is that it catches Exception and provides an alternate repr if the __repr__ raised. unittest.util.safe_repr() is a public API, just

[issue27432] Unittest truncating of error message not works

2019-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: Mariatta -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue27432] Unittest truncating of error message not works

2019-05-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +13005 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue27432] Unittest truncating of error message not works

2019-05-04 Thread Julia
Julia added the comment: Working on it at the moment (Mentored Sprint) -- nosy: +jiliuk ___ Python tracker ___ ___

[issue27432] Unittest truncating of error message not works

2019-03-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: This one is a little more complicated, but I'm going to assign to @Mariatta for the sprints. -- assignee: -> Mariatta nosy: +Mariatta, cheryl.sabella stage: -> needs patch versions: +Python 3.8 -Python 3.6 ___

[issue27432] Unittest truncating of error message not works

2016-07-01 Thread R. David Murray
R. David Murray added the comment: This is by design. The short option was introduced to use in specific asserts (assertDictEqual and assertMultilineEqual; see 8b8701551253). These were later enhanced to do an even better job of abbreviating the output usefully, but the short option on

[issue27432] Unittest truncating of error message not works

2016-07-01 Thread Camilla Ke
New submission from Camilla Ke: Builtin assert methods output messages no matter how length is the output messages. However, content with exceeding length should be truncated. I found an error in the function. The function is safe_repr() in util.py if len(result) > _MAX_LENGTH, it should