Skip to content

Commit 97cad4d

Browse files
author
Richard Jones
committed
oops - wasn't deleting the test dir after the read-only tests
1 parent f585d0f commit 97cad4d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_db.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: test_db.py,v 1.6 2001-07-27 06:23:59 richard Exp $
1+
# $Id: test_db.py,v 1.7 2001-07-27 06:26:43 richard Exp $
22

33
import unittest, os, shutil
44

@@ -135,6 +135,10 @@ class Database(anydbm.Database):
135135
self.db = Database('_test_dir')
136136
setupSchema(self.db, 0)
137137

138+
def tearDown(self):
139+
self.db.close()
140+
shutil.rmtree('_test_dir')
141+
138142
def testExceptions(self):
139143
# this tests the exceptions that should be raised
140144
ar = self.assertRaises
@@ -153,6 +157,9 @@ def suite():
153157

154158
#
155159
# $Log: not supported by cvs2svn $
160+
# Revision 1.6 2001/07/27 06:23:59 richard
161+
# consistency
162+
#
156163
# Revision 1.5 2001/07/27 06:23:09 richard
157164
# Added some new hyperdb tests to make sure we raise the right exceptions.
158165
#

0 commit comments

Comments
 (0)