[Zope-Checkins] CVS: ZODB3/ZODB/tests - testFileStorage.py:1.19.28.4
Jeremy Hylton
jeremy@zope.com
Fri, 15 Nov 2002 11:52:02 -0500
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv31283
Modified Files:
Tag: ZODB3-restore-debug-branch
testFileStorage.py
Log Message:
Remove debugging implementation of compare().
=== ZODB3/ZODB/tests/testFileStorage.py 1.19.28.3 => 1.19.28.4 ===
--- ZODB3/ZODB/tests/testFileStorage.py:1.19.28.3 Fri Nov 15 11:45:35 2002
+++ ZODB3/ZODB/tests/testFileStorage.py Fri Nov 15 11:52:02 2002
@@ -79,23 +79,6 @@
StorageTestBase.removefs("Source.fs")
StorageTestBase.removefs("Dest.fs")
- def _dump(self, path):
- from ZODB.fsdump import Dumper
- from cStringIO import StringIO
- f = StringIO()
- Dumper(path, f).dump()
- return f.getvalue()
-
- def compare(self, storage1, storage2):
- from difflib import ndiff
- from ZODB.tests.IteratorStorage import IteratorDeepCompare
- dump1 = self._dump(storage1.__name__)
- dump2 = self._dump(storage2.__name__)
- for line in ndiff(dump1.splitlines(1),
- dump2.splitlines(2)):
- print line,
- IteratorDeepCompare.compare(self, storage1, storage2)
-
def checkSimpleRecovery(self):
oid = self._storage.new_oid()
revid = self._dostore(oid, data=11)
@@ -121,7 +104,6 @@
revid = self._dostore(oid, revid=revid, data=34, version='one')
oids = self._abortVersion("one")
self.assertEqual(oids, [oid])
- print self._dump(self._storage.__name__)
self._dst.copyTransactionsFrom(self._storage)
self.compare(self._storage, self._dst)
# Also make sure the the last transaction has a data record