text failure report is too gassy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Wishlist
|
Jonathan Lange |
Bug Description
A typical testtools bzr failure is
=======
ERROR: bzrlib.
-------
_StringException: Text attachment: log
------------
------------
Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/
return fn(*args)
File "/usr/lib/
testMethod()
File "/home/
self.
File "/home/
self.
File "/home/
if result.scheme in ('ubuntu', 'debianlp'):
AttributeError: 'tuple' object has no attribute 'scheme'
------------
-------
There is a lot of unnecessary padding here.
* if the attachment's empty, don't show it (perhaps bzr should not attach it)
* obviously it's a traceback, you don't need to tell me
* the dashes and blanks are a bit excessive
Related branches
- Robert Collins: Needs Information
- Martin Packman: Approve
-
Diff: 662 lines (+269/-99)8 files modifiedNEWS (+3/-0)
doc/for-test-authors.rst (+3/-7)
testtools/content_type.py (+7/-1)
testtools/matchers.py (+9/-2)
testtools/testresult/real.py (+53/-16)
testtools/tests/test_content_type.py (+10/-0)
testtools/tests/test_distutilscmd.py (+2/-2)
testtools/tests/test_testresult.py (+182/-71)
Changed in testtools: | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in testtools: | |
status: | Triaged → In Progress |
assignee: | nobody → Jonathan Lange (jml) |
Changed in testtools: | |
status: | In Progress → Fix Committed |
milestone: | none → next |
tags: | added: over-verbosity |
Changed in testtools: | |
status: | Fix Committed → Fix Released |
I agree with these comments, plus the top two levels of the traceback aren't needed.
Fixing this just in bzrlib is on my todo list along with bug 625597 but making the default testtools output more concise would also be good.