syntax errors cause mangled test output

Bug #601256 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

I had a syntax error, and it made the test runner blow up in a non-obvious way. Its probably fairly straight forward to address (Trial had a similar issue).

:!testr run --failing
running: ./bin/test --subunit --load-list /home/robertc/launchpad/lp-branches/working/failing.list| testr load
Traceback (most recent call last):
  File "./bin/test", line 258, in <module>
    result = testrunner.run([])
  File "/home/robertc/launchpad/lp-sourcedeps/eggs/zope.testing-3.9.4_p1-py2.6.egg/zope/testing/testrunner/__init__.py", line 32, in run
    failed = run_internal(defaults, args, script_parts=script_parts)
  File "/home/robertc/launchpad/lp-sourcedeps/eggs/zope.testing-3.9.4_p1-py2.6.egg/zope/testing/testrunner/__init__.py", line 45, in run_internal
    runner.run()
  File "/home/robertc/launchpad/lp-sourcedeps/eggs/zope.testing-3.9.4_p1-py2.6.egg/zope/testing/testrunner/runner.py", line 126, in run
    feature.global_setup()
  File "/home/robertc/launchpad/lp-sourcedeps/eggs/zope.testing-3.9.4_p1-py2.6.egg/zope/testing/testrunner/find.py", line 418, in global_setup
    tests = find_tests(self.runner.options, self.runner.found_suites)
  File "/home/robertc/launchpad/lp-branches/working/lib/canonical/testing/customresult.py", line 28, in find_tests
    return hook(real_find_tests(*args))
  File "/home/robertc/launchpad/lp-branches/working/lib/canonical/testing/customresult.py", line 28, in find_tests
    return hook(real_find_tests(*args))
  File "/home/robertc/launchpad/lp-branches/working/lib/canonical/testing/customresult.py", line 46, in do_filter
    if test.id() in tests:
  File "/usr/lib/python2.6/unittest.py", line 243, in id
    return "%s.%s" % (_strclass(self.__class__), self._testMethodName)
AttributeError: 'StartUpFailure' object has no attribute '_testMethodName'
id: 38 tests: 0

Gary Poster (gary)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Marius Gedminas (mgedmin) wrote :

(Actually it's a duplicate of 624084, which itself was marked as a duplicate of 221151.)

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.