← Back to team overview

testtools-dev team mailing list archive

[Bug 660852] Re: text failure report is too gassy

 

here's an example subunit output from bzr; thanks for tackling this

** Attachment added: "subunit.out"
   https://bugs.launchpad.net/testtools/+bug/660852/+attachment/2185575/+files/subunit.out

-- 
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/660852

Title:
  text failure report is too gassy

Status in testtools:
  In Progress

Bug description:
  A typical testtools bzr failure is

  ======================================================================
  ERROR: bzrlib.plugins.launchpad.test_lp_directory.TestDebuntuExpansions.test_ubuntu_natty_distroseries_expansion
  ----------------------------------------------------------------------
  _StringException: Text attachment: log
  ------------

  ------------
  Text attachment: traceback
  ------------
  Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/testtools/runtest.py", line 128, in _run_user
     return fn(*args)
   File "/usr/lib/python2.4/site-packages/testtools/testcase.py", line 368, in _run_test_method
     testMethod()
   File "/home/pqm/bzr-pqm-workdir/home/+trunk/bzrlib/plugins/launchpad/test_lp_directory.py", line 423, in test_ubuntu_natty_distroseries_expansion
     self.assertURL('ubuntu/natty/foo', 'ubuntu:natty/foo', series='natty')
   File "/home/pqm/bzr-pqm-workdir/home/+trunk/bzrlib/plugins/launchpad/test_lp_directory.py", line 383, in assertURL
     self.directory._resolve(shortcut, factory))
   File "/home/pqm/bzr-pqm-workdir/home/+trunk/bzrlib/plugins/launchpad/lp_directory.py", line 77, in _resolve
     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

To manage notifications about this bug go to:
https://bugs.launchpad.net/testtools/+bug/660852/+subscriptions


References