Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Collector #960: Conflict tests now properly cleanup after themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
caseman committed Jul 15, 2003
1 parent ca3d95f commit e6a773d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions tests/testIndex.py
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions tests/testLexicon.py
Expand Up @@ -146,11 +146,12 @@ def testUpgradeLength(self):

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
Expand Down

0 comments on commit e6a773d

Please sign in to comment.