ZopeTestCase.app() returns a new connection which you would have to ZopeTestCase.close(app) after use. If you forget to close, you will deplete the connection pool and cause the hang you experience.

Also, note that the app argument to utility methods is *optional*, and setupCoreSessions() will manage the connection for you if you omit it.

So, make this ZopeTestCase.utils.setupCoreSessions() and all should be fine.


On 23. Apr 2005, at 15:39, Balazs Ree wrote:


-- Software Engineering is Programming when you can't. --E. W. Dijkstra

Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to