diff tests/test_db.py @ 90:76803679598f

oops - wasn't deleting the test dir after the read-only tests
author Richard Jones <richard@users.sourceforge.net>
date Fri, 27 Jul 2001 06:26:43 +0000
parents 168def1ce74d
children
line wrap: on
line diff
--- a/tests/test_db.py	Fri Jul 27 06:25:35 2001 +0000
+++ b/tests/test_db.py	Fri Jul 27 06:26:43 2001 +0000
@@ -1,4 +1,4 @@
-# $Id: test_db.py,v 1.6 2001-07-27 06:23:59 richard Exp $ 
+# $Id: test_db.py,v 1.7 2001-07-27 06:26:43 richard Exp $ 
 
 import unittest, os, shutil
 
@@ -135,6 +135,10 @@
         self.db = Database('_test_dir')
         setupSchema(self.db, 0)
 
+    def tearDown(self):
+        self.db.close()
+        shutil.rmtree('_test_dir')
+
     def testExceptions(self):
         # this tests the exceptions that should be raised
         ar = self.assertRaises
@@ -153,6 +157,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.6  2001/07/27 06:23:59  richard
+# consistency
+#
 # Revision 1.5  2001/07/27 06:23:09  richard
 # Added some new hyperdb tests to make sure we raise the right exceptions.
 #

Roundup Issue Tracker: http://roundup-tracker.org/