[ZEO-Checkins] CVS: StandaloneZODB/ZEO/tests - Cache.py:1.3.2.2
Jeremy Hylton
jeremy at zope.com
Thu Mar 7 21:10:03 EST 2002
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
More information about the ZEO-Checkins
mailing list