On Thu, Jan 12, 2006 at 08:47:22PM +0100, Andrea Arcangeli wrote:

> The ideal unittest would depend on the timings too. Are unittest allowed
> to depend on the timigs?  However writing the unittest is going to be
> more difficult than writing the feature ;)

Create a deferred, create a timer, return the deferred from the test,
the deferred will be fired when the timer triggers it.

> > I suggest also adding a ticket to trac for your patch.
> 
> Ok. BTW, in the meantime I did a minor cleanup, the first deferred in
> the list isn't needed, it can be replaced by Null, that saves some bytes
> at runtime (nothing measurable but anyway).

I don't think we care about bytes. The cleaner the better.

-- 
Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4
Blog: http://vvolonghi.blogspot.com
http://weever.berlios.de

Attachment: pgpp85wz0f771.pgp
Description: PGP signature

_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to