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