unit testing, db, client: cleanly close Client instances

This commit is contained in:
Fabio Erculiani
2009-04-20 20:01:26 +02:00
parent 437bbec087
commit 0a28af0ee6
2 changed files with 2 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ class LocalRepositoryTest(unittest.TestCase):
"""
sys.stdout.write("%s ran\n" % (self,))
sys.stdout.flush()
self.Client.destroy()
def test_constant_backup(self):
const_key = 'foo_foo_foo'

View File

@@ -26,6 +26,7 @@ class LocalRepositoryTest(unittest.TestCase):
sys.stdout.write("%s ran\n" % (self,))
sys.stdout.flush()
self.test_db.closeDB()
self.Client.destroy()
def __open_test_db(self):
return self.Client.open_memory_database(dbname = self.test_db_name)