[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - PackableStorage.py:1.8

Jeremy Hylton jeremy@zope.com
Tue, 2 Oct 2001 18:10:55 -0400


Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv15062/tests

Modified Files:
	PackableStorage.py 
Log Message:
Finish the previous checkin: cleanup the packing tests so that they
actual work  


=== StandaloneZODB/ZODB/tests/PackableStorage.py 1.7 => 1.8 ===
         except KeyError:
             import PersistentMapping
+            from ZODB.Transaction import Transaction
             file = StringIO()
-            p = Pickler(file, 1)
+            p = cPickle.Pickler(file, 1)
             p.dump((PersistentMapping.PersistentMapping, None))
             p.dump({'_container': {}})
             t=Transaction()
@@ -156,7 +157,6 @@
         raises(KeyError, self._storage.loadSerial, oid, revid3)
 
     def checkPackJustOldRevisions(self):
-        self._initroot()
         eq = self.assertEqual
         raises = self.assertRaises
         loads = self._makeloader()