[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - MTStorage.py:1.10
Tim Peters
tim.one at comcast.net
Thu Jun 19 18:50:14 EDT 2003
Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv17308/lib/python/ZODB/tests
Modified Files:
MTStorage.py
Log Message:
TimeStamp_laterThan(): This leaked a Python string object whenever it
had to create a new timestamp. Fixed.
check2ZODBThreads(), check7ZODBThreads(): Close the database when
these tests end. Else they leak bigtime, obscuring searches for real
leaks.
=== Zope/lib/python/ZODB/tests/MTStorage.py 1.9 => 1.10 ===
--- Zope/lib/python/ZODB/tests/MTStorage.py:1.9 Wed Jun 18 12:24:53 2003
+++ Zope/lib/python/ZODB/tests/MTStorage.py Thu Jun 19 17:50:14 2003
@@ -211,10 +211,12 @@
def check2ZODBThreads(self):
db = ZODB.DB(self._storage)
self._checkNThreads(2, ZODBClientThread, db, self)
+ db.close()
def check7ZODBThreads(self):
db = ZODB.DB(self._storage)
self._checkNThreads(7, ZODBClientThread, db, self)
+ db.close()
def check2StorageThreads(self):
self._checkNThreads(2, StorageClientThread, self._storage, self)
More information about the Zodb-checkins
mailing list