mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
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.
This commit is contained in:
parent
d21fb4c2e0
commit
31e88934ed
2 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue