Commit e667b022 authored by Jim Fulton's avatar Jim Fulton

Removed support for non-transactional-undo-supporting storages.

Changed a test that used loadEx to use load, since loadEx isn't a
storage method.
parent a06bfc03
...@@ -87,11 +87,6 @@ class IteratorStorage(IteratorCompare): ...@@ -87,11 +87,6 @@ class IteratorStorage(IteratorCompare):
pass pass
def checkUndoZombieNonVersion(self): def checkUndoZombieNonVersion(self):
if not hasattr(self._storage, 'supportsTransactionalUndo'):
return
if not self._storage.supportsTransactionalUndo():
return
oid = self._storage.new_oid() oid = self._storage.new_oid()
revid = self._dostore(oid, data=MinPO(94)) revid = self._dostore(oid, data=MinPO(94))
# Get the undo information # Get the undo information
...@@ -149,10 +144,10 @@ class IteratorStorage(IteratorCompare): ...@@ -149,10 +144,10 @@ class IteratorStorage(IteratorCompare):
finally: finally:
self._storage.tpc_finish(t) self._storage.tpc_finish(t)
def checkLoadEx(self): def checkLoad_was_checkLoadEx(self):
oid = self._storage.new_oid() oid = self._storage.new_oid()
self._dostore(oid, data=42) self._dostore(oid, data=42)
data, tid, ver = self._storage.loadEx(oid, "") data, tid = self._storage.load(oid, "")
self.assertEqual(zodb_unpickle(data), MinPO(42)) self.assertEqual(zodb_unpickle(data), MinPO(42))
match = False match = False
for txn in self._storage.iterator(): for txn in self._storage.iterator():
...@@ -164,6 +159,7 @@ class IteratorStorage(IteratorCompare): ...@@ -164,6 +159,7 @@ class IteratorStorage(IteratorCompare):
self.fail("Could not find transaction with matching id") self.fail("Could not find transaction with matching id")
class ExtendedIteratorStorage(IteratorCompare): class ExtendedIteratorStorage(IteratorCompare):
def checkExtendedIteration(self): def checkExtendedIteration(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment