[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - BasicStorage.py:1.17

Jeremy Hylton jeremy@zope.com
Wed, 23 Jan 2002 20:36:33 -0500


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

Modified Files:
	BasicStorage.py 
Log Message:
Remove uses of self._transaction.


=== StandaloneZODB/ZODB/tests/BasicStorage.py 1.16 => 1.17 ===
         eq = self.assertEqual
         oid = self._storage.new_oid()
-        txn = self._transaction
+        txn = Transaction()
         self._storage.tpc_begin(txn)
         # Use None for serial.  Don't use _dostore() here because that coerces
         # serial=None to serial=ZERO.
@@ -120,11 +120,11 @@
 
     def checkWriteAfterAbort(self):
         oid = self._storage.new_oid()
-        self._storage.tpc_begin(self._transaction)
-        self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)),
-                            '', self._transaction)
+        t = Transaction()
+        self._storage.tpc_begin(t)
+        self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), '', t)
         # Now abort this transaction
-        self._storage.tpc_abort(self._transaction)
+        self._storage.tpc_abort(t)
         # Now start all over again
         oid = self._storage.new_oid()
         self._dostore(oid=oid, data=MinPO(6))