Commit ea82d744 authored by Casey Duncan's avatar Casey Duncan

Collector #960: Conflict tests now properly cleanup after themselves

parent 9b251971
......@@ -159,11 +159,12 @@ class OkapiIndexTest(IndexTest):
class TestIndexConflict(TestCase):
storage = None
db = None
def tearDown(self):
if self.storage is not None:
self.storage.close()
if self.db is not None:
self.db.close()
self.storage.cleanup()
def openDB(self):
from ZODB.FileStorage import FileStorage
......
......@@ -146,11 +146,12 @@ class Test(TestCase):
class TestLexiconConflict(TestCase):
storage = None
db = None
def tearDown(self):
if self.storage is not None:
self.storage.close()
if self.db is not None:
self.db.close()
self.storage.cleanup()
def openDB(self):
from ZODB.FileStorage import FileStorage
......
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