[Zope] Strange lockup during functional tests (sandboxed)
Stefan H. Holek
stefan at epy.co.at
Sat Apr 23 10:48:21 EDT 2005
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.
HTH,
Stefan
On 23. Apr 2005, at 15:39, Balazs Ree wrote:
> ZopeTestCase.utils.setupCoreSessions(ZopeTestCase.Zope.app())
--
Software Engineering is Programming when you can't. --E. W. Dijkstra
More information about the Zope
mailing list