Ticket #4565 defect new
trial reporter dies on unexpected success
| Reported by: | acapnotic | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | trial | Keywords: | |
| Cc: | Branch: | ||
| Author: | Launchpad Bug: |
Description
This explodes a bunch:
from twisted.trial import unittest
class TestThing(unittest.TestCase):
def test_this(self):
pass
test_this.todo = (ValueError, "monkey")
File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-i686.egg/twisted/trial/runner.py", line 884, in _runWithoutDecoration
result.done()
File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-i686.egg/twisted/trial/reporter.py", line 636, in done
self._printErrors()
File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-i686.egg/twisted/trial/reporter.py", line 582, in _printErrors
self._printUnexpectedSuccess)
File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-i686.egg/twisted/trial/reporter.py", line 545, in _printResults
self._write(formatter(*(content[1:])))
File "/usr/local/lib/python2.6/dist-packages/Twisted-10.0.0-py2.6-linux-i686.egg/twisted/trial/reporter.py", line 556, in _printUnexpectedSuccess
ret += 'Expected errors: %s\n' % (', '.join(todo.errors),)
TypeError: sequence item 0: expected string, type found
Change History
Note: See
TracTickets for help on using
tickets.
