Commit 4ba67bbc authored by Jeremy Hylton's avatar Jeremy Hylton

Get rid of self._transaction.

parent e067bfed
...@@ -149,13 +149,11 @@ class StorageTestBase(unittest.TestCase): ...@@ -149,13 +149,11 @@ class StorageTestBase(unittest.TestCase):
# Begin the transaction # Begin the transaction
t = Transaction() t = Transaction()
self._storage.tpc_begin(t) self._storage.tpc_begin(t)
self._transaction = t
# Store an object # Store an object
r1 = self._storage.store(oid, revid, data, version, t) r1 = self._storage.store(oid, revid, data, version, t)
# Finish the transaction # Finish the transaction
r2 = self._storage.tpc_vote(t) r2 = self._storage.tpc_vote(t)
self._storage.tpc_finish(t) self._storage.tpc_finish(t)
self._transaction = None
return handle_serials(oid, r1, r2) return handle_serials(oid, r1, r2)
def _dostoreNP(self, oid=None, revid=None, data=None, version=None): def _dostoreNP(self, oid=None, revid=None, data=None, version=None):
......
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