[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - TransactionalUndoStorage.py:1.12

Barry Warsaw barry@wooz.org
Thu, 4 Oct 2001 17:08:14 -0400


Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv27563

Modified Files:
	TransactionalUndoStorage.py 
Log Message:
checkTwoObjectUndoAgain(): Might as well create p31 and p51 the same
way all the other MinPO objects are created.  But, be sure to pass
already_pickled=1 to _dostore().


=== StandaloneZODB/ZODB/tests/TransactionalUndoStorage.py 1.11 => 1.12 ===
     def checkTwoObjectUndoAgain(self):
         eq = self.assertEqual
-        p32, p33, p52, p53 = map(zodb_pickle,
-                                 map(MinPO, (32, 33, 52, 53)))
+        p31, p32, p33, p51, p52, p53 = map(
+            zodb_pickle,
+            map(MinPO, (31, 32, 33, 51, 52, 53)))
         # Like the above, but the first revision of the objects are stored in
         # different transactions.
         oid1 = self._storage.new_oid()
         oid2 = self._storage.new_oid()
-        revid1 = self._dostore(oid1, data=MinPO(31))
-        revid2 = self._dostore(oid2, data=MinPO(51))
+        revid1 = self._dostore(oid1, data=p31, already_pickled=1)
+        revid2 = self._dostore(oid2, data=p51, already_pickled=1)
         # Update those same two objects
         self._storage.tpc_begin(self._transaction)
         self._transaction_begin()