[Zodb-checkins] CVS: ZODB3/ZODB/tests - MTStorage.py:1.6.4.3

Tim Peters tim.one at comcast.net
Thu Jun 19 19:04:48 EDT 2003


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv20051/ZODB/tests

Modified Files:
      Tag: ZODB3-3_1-branch
	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.


=== ZODB3/ZODB/tests/MTStorage.py 1.6.4.2 => 1.6.4.3 ===
--- ZODB3/ZODB/tests/MTStorage.py:1.6.4.2	Wed Jun 18 18:19:53 2003
+++ ZODB3/ZODB/tests/MTStorage.py	Thu Jun 19 18:04:47 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