[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - Cache.py:1.3.2.2
Jeremy Hylton
jeremy@zope.com
Thu, 7 Mar 2002 21:10:03 -0500
Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv5441
Modified Files:
Tag: zeo-1_0-branch
Cache.py
Log Message:
Don't use self._transaction
=== StandaloneZODB/ZEO/tests/Cache.py 1.3.2.1 => 1.3.2.2 ===
# Now start an undo transaction
- self._transaction.note('undo1')
- self._storage.tpc_begin(self._transaction)
+ t = Transaction()
+ t.note('undo1')
+ self._storage.tpc_begin(t)
- oids = self._storage.transactionalUndo(tid, self._transaction)
+ oids = self._storage.transactionalUndo(tid, t)
# Make sure this doesn't load invalid data into the cache
self._storage.load(oid, '')
- self._storage.tpc_vote(self._transaction)
- self._storage.tpc_finish(self._transaction)
+ self._storage.tpc_vote(t)
+ self._storage.tpc_finish(t)
assert len(oids) == 1
assert oids[0] == oid