Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available (Patch by Ray.Allen)
This commit is contained in:
parent
94ca211372
commit
75d818fa91
|
@ -123,7 +123,7 @@ class WhichDBTestCase(unittest.TestCase):
|
||||||
name = module.__name__
|
name = module.__name__
|
||||||
if name == 'dbm.dumb':
|
if name == 'dbm.dumb':
|
||||||
continue # whichdb can't support dbm.dumb
|
continue # whichdb can't support dbm.dumb
|
||||||
test.support.unlink(_fname)
|
delete_files()
|
||||||
f = module.open(_fname, 'c')
|
f = module.open(_fname, 'c')
|
||||||
f.close()
|
f.close()
|
||||||
self.assertEqual(name, dbm.whichdb(_fname))
|
self.assertEqual(name, dbm.whichdb(_fname))
|
||||||
|
|
Loading…
Reference in New Issue