[Zope-Checkins] CVS: ZODB3/ZODB/tests - MTStorage.py:1.8.4.1

Tim Peters tim.one@comcast.net
Thu, 19 Jun 2003 18:10:49 -0400


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

Modified Files:
      Tag: ZODB3-3_2-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.8 => 1.8.4.1 ===
--- ZODB3/ZODB/tests/MTStorage.py:1.8	Thu May 22 15:11:34 2003
+++ ZODB3/ZODB/tests/MTStorage.py	Thu Jun 19 18:10:48 2003
@@ -210,10 +210,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)