[Zodb-checkins] CVS: Zope3/lib/python/ZODB/tests - PackableStorage.py:1.21
Jeremy Hylton
jeremy@zope.com
Wed, 4 Dec 2002 16:56:20 -0500
Update of /cvs-repository/Zope3/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv19364/lib/python/ZODB/tests
Modified Files:
PackableStorage.py
Log Message:
Use MinPO instead of custom local class.
=== Zope3/lib/python/ZODB/tests/PackableStorage.py 1.20 => 1.21 ===
--- Zope3/lib/python/ZODB/tests/PackableStorage.py:1.20 Tue Dec 3 18:04:22 2002
+++ Zope3/lib/python/ZODB/tests/PackableStorage.py Wed Dec 4 16:56:20 2002
@@ -24,6 +24,7 @@
import time
from ZODB.DB import DB
+from ZODB.tests.MinPO import MinPO
from Persistence import Persistent
from Transaction import get_transaction
@@ -341,8 +342,7 @@
while packtime <= now:
packtime = time.time()
- obj = C()
- obj.value = 7
+ obj = MinPO(7)
root['obj'] = obj
txn = get_transaction()
@@ -355,7 +355,7 @@
txn.commit()
self._storage.pack(packtime)
-
+
log = self._storage.undoLog()
tid = log[0]['id']
db.undo(tid)