← Back to team overview

testtools-dev team mailing list archive

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

 

An empty attachment is important for some projects; if bzr doesn't want
it, it shouldn't attach it. (OTOH I think that that attachment has a
single blank line : its not empty).

There can be many tracebacks - -0, -1, -2 etc (occurs when server
threads blow up, or cleanups error). If you genuinely don't want to see
the attachment label for the attachment called traceback, I guess we
could do that but it seems counter productive to me.

As for the = and -, patches appreciated.

** Changed in: testtools
   Importance: Low => Wishlist

-- 
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:
  Triaged

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





References