From 901b2ffa81cf5885c2d1a759d2c748918e95916d Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 27 Jul 2001 06:26:43 +0000 Subject: [PATCH] oops - wasn't deleting the test dir after the read-only tests git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@95 57a73879-2fb5-44c3-a270-3262357dd7e2 --- tests/test_db.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_db.py b/tests/test_db.py index faee2ff..4bfd2ef 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -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 @@ class ReadOnlyDBTestCase(unittest.TestCase): 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 @@ def suite(): # # $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. # -- 2.30.2