summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_thread.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-05 05:10:48 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-05 05:10:48 (GMT)
commit31e88934ed567f80cdcc671d05862cb58ce61b1b (patch)
tree8060f364a61cd4978f8165eaddf25e5dae95ec4d /Lib/bsddb/test/test_thread.py
parentd21fb4c2e097dd72d1772a6f0325cc45f9b20f30 (diff)
downloadcpython-31e88934ed567f80cdcc671d05862cb58ce61b1b.zip
cpython-31e88934ed567f80cdcc671d05862cb58ce61b1b.tar.gz
cpython-31e88934ed567f80cdcc671d05862cb58ce61b1b.tar.bz2
Remove the files/dirs after closing the DB so the tests work on Windows.
Patch from Trent Nelson. Also simplified removing a file by using test_support.
Diffstat (limited to 'Lib/bsddb/test/test_thread.py')
-rw-r--r--Lib/bsddb/test/test_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py
index 15ed905..0395f6d 100644
--- a/Lib/bsddb/test/test_thread.py
+++ b/Lib/bsddb/test/test_thread.py
@@ -73,9 +73,9 @@ class BaseThreadedTestCase(unittest.TestCase):
self.d.open(self.filename, self.dbtype, self.dbopenflags|db.DB_CREATE)
def tearDown(self):
- test_support.rmtree(self.homeDir)
self.d.close()
self.env.close()
+ test_support.rmtree(self.homeDir)
def setEnvOpts(self):
pass