Get test working when there are multiple dbs supported.

This commit is contained in:
Neal Norwitz 2007-08-25 18:00:36 +00:00
parent fe61bb9a59
commit 0337ef62fa

View 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))