[Zodb-checkins] CVS: ZODB3/ZODB/tests - testZODB.py:1.14
Jeremy Hylton
jeremy at zope.com
Wed Apr 23 17:33:50 EDT 2003
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv13914
Modified Files:
testZODB.py
Log Message:
Simplify ResetCache() test.
=== ZODB3/ZODB/tests/testZODB.py 1.13 => 1.14 ===
--- ZODB3/ZODB/tests/testZODB.py:1.13 Wed Apr 23 16:16:42 2003
+++ ZODB3/ZODB/tests/testZODB.py Wed Apr 23 16:33:48 2003
@@ -143,15 +143,12 @@
# ought to be linked to it rather than the old cache.
self.populate()
conn = self._db.open()
- try:
- conn.root()
- self.assert_(len(conn._cache) > 0) # Precondition
- conn._resetCache()
- self.assertEqual(len(conn._cache), 0)
- self.assert_(conn._incrgc == conn._cache.incrgc)
- self.assert_(conn.cacheGC == conn._cache.incrgc)
- finally:
- conn.close()
+ conn.root()
+ self.assert_(len(conn._cache) > 0) # Precondition
+ conn._resetCache()
+ self.assertEqual(len(conn._cache), 0)
+ self.assert_(conn._incrgc == conn._cache.incrgc)
+ self.assert_(conn.cacheGC == conn._cache.incrgc)
def checkLocalTransactions(self):
# Test of transactions that apply to only the connection,
More information about the Zodb-checkins
mailing list