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

Itamar Shtull-Trauring itamar at itamarst.org
Tue Nov 15 12:28:24 EST 2005

On Tue, 2005-11-15 at 12:09 +1100, Andrew Bennetts wrote:
> On Mon, Nov 14, 2005 at 02:48:38PM -0500, Jean-Paul Calderone wrote:
> > On Mon, 14 Nov 2005 08:10:08 +1100, Jonathan Lange <jml at mumak.net> wrote:
> > >
> > >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].
> > 
> > This does not surprise me.  I guess it surprised Brian, but presumably he's 
> > learned his lesson now ;)  It seems to me the way it *should* work.  At the 
> FWIW, it surprised me.

And reading that over again, yeah, that's surprising. I would expect
setupClass to always be called before a test runs, however it was

More information about the Twisted-Python mailing list