[Zope-Checkins] CVS: ZODB3/ZODB/tests - VersionStorage.py:1.25.2.11
Jeremy Hylton
jeremy at zope.com
Fri Dec 19 17:49:14 EST 2003
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv24529/ZODB/tests
Modified Files:
Tag: ZODB3-mvcc-2-branch
VersionStorage.py
Log Message:
Some storages don't support loadSerial().
=== ZODB3/ZODB/tests/VersionStorage.py 1.25.2.10 => 1.25.2.11 ===
--- ZODB3/ZODB/tests/VersionStorage.py:1.25.2.10 Fri Dec 19 16:43:06 2003
+++ ZODB3/ZODB/tests/VersionStorage.py Fri Dec 19 17:49:13 2003
@@ -88,10 +88,13 @@
eq(zodb_unpickle(data), MinPO(12))
eq(tid, revid2)
# loadSerial returns non-version data
- data = self._storage.loadSerial(oid, revid)
- eq(zodb_unpickle(data), MinPO(12))
- data = self._storage.loadSerial(oid, revid2)
- eq(zodb_unpickle(data), MinPO(12))
+ try:
+ data = self._storage.loadSerial(oid, revid)
+ eq(zodb_unpickle(data), MinPO(12))
+ data = self._storage.loadSerial(oid, revid2)
+ eq(zodb_unpickle(data), MinPO(12))
+ except POSException.Unsupported:
+ pass
def checkVersionedLoadErrors(self):
oid = self._storage.new_oid()
More information about the Zope-Checkins
mailing list