[Zope3-checkins] CVS: ZODB4/Persistence/BTrees/tests - testCompare.py:1.4
Jeremy Hylton
jeremy@zope.com
Thu, 18 Jul 2002 16:26:48 -0400
Update of /cvs-repository/ZODB4/Persistence/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv22609/Persistence/BTrees/tests
Modified Files:
testCompare.py
Log Message:
Remove all the magic from ZODB's __init__.py.
You need to get ZODB.DB.DB and get_transaction() explicitly now.
=== ZODB4/Persistence/BTrees/tests/testCompare.py 1.3 => 1.4 ===
import unittest
-import ZODB
+import ZODB.DB
from ZODB.MappingStorage import MappingStorage
from Persistence.BTrees.OOBTree import OOBucket as Bucket, OOSet as Set
@@ -32,7 +32,7 @@
self.assertRaises(UnicodeError, unicode, self.s)
# An object needs to be added to the database to
- self.db = ZODB.DB(MappingStorage())
+ self.db = ZODB.DB.DB(MappingStorage())
root = self.db.open().root()
self.bucket = root["bucket"] = Bucket()
self.set = root["set"] = Set()