[Zodb-checkins] CVS: ZODB3/ZEO/tests - test_cache.py:1.1.2.6

Jeremy Hylton cvs-admin at zope.org
Thu Nov 13 13:44:59 EST 2003


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv11003/ZEO/tests

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	test_cache.py 
Log Message:
Fix bug in cache's version handling.

It returned version data even if requesting data for a different
version that the stored data used.


=== ZODB3/ZEO/tests/test_cache.py 1.1.2.5 => 1.1.2.6 ===
--- ZODB3/ZEO/tests/test_cache.py:1.1.2.5	Wed Nov 12 17:20:39 2003
+++ ZODB3/ZEO/tests/test_cache.py	Thu Nov 13 13:44:58 2003
@@ -69,6 +69,7 @@
         self.cache.store(n1, "version", n2, n3, None, data1v)
         self.assertEqual(self.cache.load(n1, ""), None)
         self.assertEqual(self.cache.load(n1, "version"), (data1v, n2, n3))
+        self.assertEqual(self.cache.load(n1, "random"), None)
         self.assertEqual(self.cache.modifiedInVersion(n1), "version")
         self.cache.invalidate(n1, "version", n4)
         self.assertEqual(self.cache.load(n1, "version"), None)




More information about the Zodb-checkins mailing list