On Mon, Jun 23, 2008 at 04:49:36PM +0100, nnp wrote: > connection = connectionForURI(connString)
Connections are cached by the URIs. See dbconnection.py, class ConnectionURIOpener; the connection cache is cachedURIs dict. The second time your program asks for a connection with the same full path and db name connectionForURI() returns the same connection; the connection is still open and still points to the same file - Unix (MacOS X is Unix, right?) doesn't remove the file form the disk, it only decrement link counter; os.unlink() doesn't remove the very file - there is still one link pointer to the file - the connection. Either close the connection explicitly in tearDonw() or clear the connection cache manually. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss