[Zodb-checkins] CVS: ZEO/ZEO/tests - Cache.py:1.4.4.2

Jeremy Hylton jeremy@zope.com
Thu, 24 Jan 2002 17:08:24 -0500


Update of /cvs-repository/ZEO/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv20672

Modified Files:
      Tag: Standby-branch
	Cache.py 
Log Message:
Track removal of _transaction on trunk.



=== ZEO/ZEO/tests/Cache.py 1.4.4.1 => 1.4.4.2 ===
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 1.1 (ZPL).  A copy of the ZPL should accompany this
-# distribution.  THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
-# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST
-# INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
-
 """Tests of the ZEO cache"""
 
 from ZODB.Transaction import Transaction
@@ -34,16 +25,17 @@
             return
 
         # 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