Commit 7de001c5 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove dependence on StorageTestBase setUp() and tearDown().

parent 6bff4058
......@@ -39,11 +39,10 @@ class FileStorageTests(
'FileStorageTests.fs', **kwargs)
def setUp(self):
StorageTestBase.StorageTestBase.setUp(self)
self.open(create=1)
def tearDown(self):
StorageTestBase.StorageTestBase.tearDown(self)
self._storage.close()
for ext in '', '.old', '.tmp', '.lock', '.index':
path = 'FileStorageTests.fs' + ext
if os.path.exists(path):
......@@ -55,12 +54,11 @@ class FileStorageRecoveryTest(
):
def setUp(self):
StorageTestBase.StorageTestBase.setUp(self)
self._storage = ZODB.FileStorage.FileStorage('Source.fs')
self._dst = ZODB.FileStorage.FileStorage('Dest.fs')
def tearDown(self):
StorageTestBase.StorageTestBase.tearDown(self)
self._storage.close()
self._dst.close()
for ext in '', '.old', '.tmp', '.lock', '.index':
for fs in 'Source', 'Dest':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment