Commit 0b97216e authored by Jeremy Hylton's avatar Jeremy Hylton

Remove uses of self._transaction.

parent 56b49f11
...@@ -71,7 +71,7 @@ class BasicStorage: ...@@ -71,7 +71,7 @@ class BasicStorage:
def checkSerialIsNoneForInitialRevision(self): def checkSerialIsNoneForInitialRevision(self):
eq = self.assertEqual eq = self.assertEqual
oid = self._storage.new_oid() oid = self._storage.new_oid()
txn = self._transaction txn = Transaction()
self._storage.tpc_begin(txn) self._storage.tpc_begin(txn)
# Use None for serial. Don't use _dostore() here because that coerces # Use None for serial. Don't use _dostore() here because that coerces
# serial=None to serial=ZERO. # serial=None to serial=ZERO.
...@@ -120,11 +120,11 @@ class BasicStorage: ...@@ -120,11 +120,11 @@ class BasicStorage:
def checkWriteAfterAbort(self): def checkWriteAfterAbort(self):
oid = self._storage.new_oid() oid = self._storage.new_oid()
self._storage.tpc_begin(self._transaction) t = Transaction()
self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), self._storage.tpc_begin(t)
'', self._transaction) self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), '', t)
# Now abort this transaction # Now abort this transaction
self._storage.tpc_abort(self._transaction) self._storage.tpc_abort(t)
# Now start all over again # Now start all over again
oid = self._storage.new_oid() oid = self._storage.new_oid()
self._dostore(oid=oid, data=MinPO(6)) self._dostore(oid=oid, data=MinPO(6))
......
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