[Twisted-Python] testing enterprise and pb
miracle at slingshot.co.nz
Tue Jan 13 03:01:28 EST 2004
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
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