[Twisted-Python] testing enterprise and pb
Matthew Sherborne
miracle at slingshot.co.nz
Tue Jan 13 01:01:28 MST 2004
Hi,
This is some advice I'd like to share:
If you're testing enterprise [and pb] with twisted.trial
before running the testing suite go:
from twisted.interet import reactor
reactor.startRunning()
And if you find that the deferreds returned by dbpool.runQuery('Select
...') and dbpool.runOperation?('...') don't return, just pump
reactor.iterate() until they do...
Aparently reactor.startRunning() gets the threads going.
Thanks to radix and slyphoon for the chat room help.
Matthew Sherborne (matiu)
More information about the Twisted-Python
mailing list