From: Senthil Kumaran Date: Sat, 26 Feb 2011 03:44:03 +0000 (+0000) Subject: Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available... X-Git-Tag: v3.3.0a1~3053 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75d818fa91c1794fc57ba7109cd9ff9cd150cd3c;p=python Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available (Patch by Ray.Allen) --- diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py index c1be7d95fa..74c9c44b23 100644 --- a/Lib/test/test_dbm.py +++ b/Lib/test/test_dbm.py @@ -123,7 +123,7 @@ class WhichDBTestCase(unittest.TestCase): name = module.__name__ if name == 'dbm.dumb': continue # whichdb can't support dbm.dumb - test.support.unlink(_fname) + delete_files() f = module.open(_fname, 'c') f.close() self.assertEqual(name, dbm.whichdb(_fname))