[Twisted-Python] Re: [Twisted-commits] r15740 - Add tests for TodoTest.

Jean-Paul Calderone exarkun at divmod.com
Wed Jan 25 23:54:40 EST 2006


On Wed, 25 Jan 2006 16:43:17 -0700, Wilfredo Sanchez <wsanchez at wolfwood.twistedmatrix.com> wrote:
>Author: wsanchez
>Date: Wed Jan 25 16:43:17 2006
>New Revision: 15740
>
>Modified:
>   trunk/twisted/trial/test/test_tests.py
>   trunk/twisted/trial/unittest.py
>Log:
>Add tests for TodoTest.
>Fix makeTodo(failure).
>
> [snip]
>@@ -65,7 +66,7 @@
>             errors = [errors]
>         return Todo(reason=reason, errors=errors)
>     if isinstance(value, failure.Failure):
>-        return Todo(reason=str(value))
>+        return Todo(reason=str(value.value))

How about value.getErrorMessage() here?

Jean-Paul




More information about the Twisted-Python mailing list