[Zodb-checkins] CVS: ZODB3/ZODB/tests - testFileStorage.py:1.19.28.2
Jeremy Hylton
jeremy@zope.com
Fri, 15 Nov 2002 10:57:34 -0500
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv25411
Modified Files:
Tag: ZODB3-restore-debug-branch
testFileStorage.py
Log Message:
Make sure setup removes files too, so that a previous failed testrun
doesn't leave uncleaned-up files. (Only a problem in debug mode.)
Add compare call to checkRecoverUndoInVersion() right after the
copyTransactionsFrom(), since it's failing then.
=== ZODB3/ZODB/tests/testFileStorage.py 1.19.28.1 => 1.19.28.2 ===
--- ZODB3/ZODB/tests/testFileStorage.py:1.19.28.1 Fri Nov 15 10:44:12 2002
+++ ZODB3/ZODB/tests/testFileStorage.py Fri Nov 15 10:57:34 2002
@@ -68,6 +68,8 @@
):
def setUp(self):
+ StorageTestBase.removefs("Source.fs")
+ StorageTestBase.removefs("Dest.fs")
self._storage = ZODB.FileStorage.FileStorage('Source.fs')
self._dst = ZODB.FileStorage.FileStorage('Dest.fs')
@@ -152,6 +154,7 @@
# now copy the records to a new storage
self._dst.copyTransactionsFrom(self._storage)
+ self.compare(self._storage, self._dst)
self._abortVersion(version)
self.assert_(self._storage.versionEmpty(version))