[Zodb-checkins] CVS: Zope3/src/zodb/storage/tests - base.py:1.14

Jeremy Hylton jeremy at zope.com
Wed Apr 16 19:06:21 EDT 2003


Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv22387/zodb/storage/tests

Modified Files:
	base.py 
Log Message:
Update cache clients and implementation to use new ICache interface.


=== Zope3/src/zodb/storage/tests/base.py 1.13 => 1.14 ===
--- Zope3/src/zodb/storage/tests/base.py:1.13	Tue Apr  1 15:21:41 2003
+++ Zope3/src/zodb/storage/tests/base.py	Wed Apr 16 18:06:21 2003
@@ -55,9 +55,13 @@
     w.close()
     return state
 
+class FakeCache(dict):
+    def set(self, k, v):
+        self[k] = v
+
 def zodb_unpickle(data):
     """Unpickle an object stored using the format expected by ZODB."""
-    u = ConnectionObjectReader(None, {})
+    u = ConnectionObjectReader(None, FakeCache())
     return u.getObject(data)
 
 def handle_all_serials(oid, *args):




More information about the Zodb-checkins mailing list