[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/IteratorStorage.py Removed support for non-transactional-undo-supporting storages.

Jim Fulton jim at zope.com
Thu Apr 26 19:20:13 EDT 2007


Log message for revision 74837:
  Removed support for non-transactional-undo-supporting storages.
  
  Changed a test that used loadEx to use load, since loadEx isn't a
  storage method.
  

Changed:
  U   ZODB/trunk/src/ZODB/tests/IteratorStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/tests/IteratorStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/IteratorStorage.py	2007-04-26 23:20:03 UTC (rev 74836)
+++ ZODB/trunk/src/ZODB/tests/IteratorStorage.py	2007-04-26 23:20:12 UTC (rev 74837)
@@ -87,11 +87,6 @@
                 pass
 
     def checkUndoZombieNonVersion(self):
-        if not hasattr(self._storage, 'supportsTransactionalUndo'):
-            return
-        if not self._storage.supportsTransactionalUndo():
-            return
-
         oid = self._storage.new_oid()
         revid = self._dostore(oid, data=MinPO(94))
         # Get the undo information
@@ -149,10 +144,10 @@
         finally:
             self._storage.tpc_finish(t)
 
-    def checkLoadEx(self):
+    def checkLoad_was_checkLoadEx(self):
         oid = self._storage.new_oid()
         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))
         match = False
         for txn in self._storage.iterator():
@@ -162,6 +157,7 @@
                     match = True
         if not match:
             self.fail("Could not find transaction with matching id")
+ 
 
 
 class ExtendedIteratorStorage(IteratorCompare):



More information about the Zodb-checkins mailing list