[Twisted-Python] Re: [Twisted-commits] r15184 - Initial implementation. Breaks a few tests.

Jean-Paul Calderone exarkun at divmod.com
Wed Nov 23 10:27:16 EST 2005


On Wed, 23 Nov 2005 04:52:21 -0700, Jonathan Lange <jml at wolfwood.twistedmatrix.com> wrote:
>Author: jml
>Date: Wed Nov 23 04:52:21 2005
>New Revision: 15184
>
>Modified:
>   branches/jml/trial-deferred-logic/twisted/trial/unittest.py
>   branches/jml/trial-deferred-logic/twisted/trial/util.py
>Log:
>Initial implementation.  Breaks a few tests.
>
> [snip]
>+
>+    def _eb_setUp(self, failure, result):
> [snip]
>+
>+    def _cb_method(self, ignored, result):
>+
> [snip]
>+
>+    def _eb_method(self, f, result):
> [snip]
>+
>+    def _eb_tearDown(self, failure, result):

Methods with a contained underscore are reserved for automatic dispatch.  I believe the convention you are looking for here is "_ebSetUp", "_cbMethod", etc.

Jean-Paul




More information about the Twisted-Python mailing list