Code

close the databases before test cleanup
[roundup.git] / test / test_db.py
index 4edb232cee1c76d481d67d9616d83170b358dc73..a00a9d341b5db4876765cf89e1a1a07146b9aa25 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: test_db.py,v 1.44 2002-09-10 03:01:20 richard Exp $ 
+# $Id: test_db.py,v 1.45 2002-09-12 04:21:20 richard Exp $ 
 
 import unittest, os, shutil, time
 
@@ -47,6 +47,9 @@ def setupSchema(db, create, module):
 
 class MyTestCase(unittest.TestCase):
     def tearDown(self):
+        self.db.close()
+        if hasattr(self, 'db2'):
+            self.db2.close()
         if os.path.exists('_test_dir'):
             shutil.rmtree('_test_dir')