]> granicus.if.org Git - python/commitdiff
Get test working when there are multiple dbs supported.
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Aug 2007 18:00:36 +0000 (18:00 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Aug 2007 18:00:36 +0000 (18:00 +0000)
Lib/test/test_whichdb.py

index d1cac1dfc10015d058bd7382bf9c4a8d8cb4ece7..7746329899927b8acad5ddbc6674cf117321e440 100644 (file)
@@ -28,6 +28,7 @@ class WhichDBTestCase(unittest.TestCase):
             name = module.__name__
             if name == 'dumbdbm':
                 continue   # whichdb can't support dumbdbm
+            test.test_support.unlink(_fname)
             f = module.open(_fname, 'c')
             f.close()
             self.assertEqual(name, whichdb.whichdb(_fname))