[Zodb-checkins] CVS: ZODB3/ZODB/tests - testCache.py:1.13.12.4
Tim Peters
cvs-admin at zope.org
Thu Oct 30 22:35:56 EST 2003
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv13823/ZODB/tests
Modified Files:
Tag: zodb33-devel-branch
testCache.py
Log Message:
checkSize(): Synch with the trunk. Jeremy sez:
When I refactored the serialization code, I removed the trick
that keeps the root as an attribute of the connection. That's
been gone on the trunk for a while, but after the devil branch
was made.
This fixes the new failure in:
checkSize (ZODB.tests.testCache.LRUCacheTests)
All the tests pass me for again, except for 3 ZConfig thingies (which
are understood but hard to fix -- Fred wasn't able to delete the
inappropriate branch tag on the newer-than-original-devil-branch ZConfig
file causing the failures).
=== ZODB3/ZODB/tests/testCache.py 1.13.12.3 => 1.13.12.4 ===
--- ZODB3/ZODB/tests/testCache.py:1.13.12.3 Tue Oct 28 16:28:33 2003
+++ ZODB3/ZODB/tests/testCache.py Thu Oct 30 22:35:54 2003
@@ -185,9 +185,7 @@
self.assertEquals(len(details), CONNS)
for d in details:
self.assertEquals(d['ngsize'], CACHE_SIZE)
- # the root is also in the cache as ghost, because
- # the connection holds a reference to it
- self.assertEquals(d['size'], CACHE_SIZE + 1)
+ self.assertEquals(d['size'], CACHE_SIZE)
def checkDetail(self):
CACHE_SIZE = 10
More information about the Zodb-checkins
mailing list