[Zope3-checkins] CVS: ZODB/src/ZODB/tests - testmvcc.py:1.11
Tim Peters
tim.one at comcast.net
Fri Mar 12 16:47:36 EST 2004
Update of /cvs-repository/ZODB/src/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv10758/src/ZODB/tests
Modified Files:
testmvcc.py
Log Message:
OK! Looks great.
=== ZODB/src/ZODB/tests/testmvcc.py 1.10 => 1.11 ===
--- ZODB/src/ZODB/tests/testmvcc.py:1.10 Fri Mar 12 16:38:21 2004
+++ ZODB/src/ZODB/tests/testmvcc.py Fri Mar 12 16:47:35 2004
@@ -288,7 +288,7 @@
>>> cn1.getTransaction().commit()
>>> r1["b"].value = 1
>>> cn1.getTransaction().commit()
->>> cn1.cacheMinimize()
+>>> cn1.cacheMinimize() # makes everything in cache a ghost
>>> oid = r1["b"]._p_oid
>>> ts.hooked[oid] = 1
@@ -324,14 +324,14 @@
>>> r1["a"] = MinPO(0)
>>> r1["b"] = MinPO(0)
>>> cn1.getTransaction().commit()
->>> cn1.cacheMinimize()
+>>> cn1.cacheMinimize() # makes everything in cache a ghost
>>> oid = r1["b"]._p_oid
>>> ts.hooked[oid] = 1
-Once the oid is hooked, an invalidation will be delivered the next
-time it is activated. The code below activates the object, then
-confirms that the hook worked and that the old state was retrieved.
+Again, once the oid is hooked, an invalidation will be delivered the next
+time it is activated. The code below activates the object, but unlike the
+section above, this is no older state to retrieve.
>>> oid in cn1._invalidated
False
More information about the Zope3-Checkins
mailing list