Failures and errors mask explicitly added details named 'traceback'

Bug #812793 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Medium
Robert Collins

Bug Description

If you run the following test:

def test_foo(self):
  self.addDetail('traceback', text_content('foo'))
  self.fail('bar')

You'll only see the failure 'bar' and will not see the attached text content 'foo'. This is because addFailure will always name its attachment 'traceback'.

Tags: details

Related branches

Jonathan Lange (jml)
tags: added: details
Changed in testtools:
assignee: nobody → Robert Collins (lifeless)
milestone: none → next
status: Triaged → Fix Committed
Changed in testtools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.