[Zodb-checkins] CVS: Zope3/src/zodb/storage/tests - readonly.py:1.4.4.1
Jeremy Hylton
jeremy@zope.com
Wed, 12 Mar 2003 18:22:48 -0500
Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv29679/storage/tests
Modified Files:
Tag: opaque-pickles-branch
readonly.py
Log Message:
Merge change from trunk.
XXX Why didn't this generate a conflict the last time around?
=== Zope3/src/zodb/storage/tests/readonly.py 1.4 => 1.4.4.1 ===
--- Zope3/src/zodb/storage/tests/readonly.py:1.4 Wed Feb 5 18:28:27 2003
+++ Zope3/src/zodb/storage/tests/readonly.py Wed Mar 12 18:22:27 2003
@@ -38,8 +38,9 @@
data, revid = self._storage.load(oid, '')
self.assertEqual(revid, self.oids[oid])
self.assert_(not self._storage.modifiedInVersion(oid))
- _data = self._storage.loadSerial(oid, revid)
- self.assertEqual(data, _data)
+ if IUndoStorage.isImplementedBy(self._storage):
+ _data = self._storage.loadSerial(oid, revid)
+ self.assertEqual(data, _data)
def checkWriteMethods(self):
self._make_readonly()