[Twisted-Python] Having different tests run with Trial using different reactor implementations ?

Alessio Pace alessio.pace at gmail.com
Thu Jan 29 07:42:25 EST 2009


Hi,

I would like to know if (but I heard it is..) and how it is possible to run
with Trial a test suite where some tests use a reactor implementation and
some instead another one..

In fact I have some tests extending Trial's TestCase (hence expecting to use
the selector reactor) while some others use the "plain" TestCase and in the
setUp() / tearDown()  do install/uninstall of the custom reactor I wrote.

Running both tests causes using the wrong reactor when another one is
expected, so I was thinking about migrating my custom reactor based tests to
Trial.

Any suggestions? Thanks again in advance.

Regards,
Alessio Pace.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090129/9e832902/attachment.htm 


More information about the Twisted-Python mailing list