[Twisted-Python] Re: [Twisted-commits] r15100 - So I really do want this stuff

Jonathan Lange jml at mumak.net
Sun Nov 13 14:10:08 MST 2005


On 13/11/05, Jean-Paul Calderone <exarkun at divmod.com> wrote:
> On Sun, 13 Nov 2005 12:33:41 +1100, Jonathan Lange <jml at mumak.net> wrote:
> >This is a bug, not a feature.
>
> Why is it a bug?
>

If your test case (i.e. test method) uses attributes on self, the only
way to guarantee they'll be there is to define them in setUp --
whether in Trial or pyunit. If they aren't defined in setUp, then they
won't be there in pyunit, and they *might* be there in Trial -- it
will depend on the command line options. [Proofs attached].

jml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trial-attrs.py
Type: application/octet-stream
Size: 589 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20051114/3ced12ab/attachment-0002.obj>


More information about the Twisted-Python mailing list