]> granicus.if.org Git - python/commitdiff
Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available...
authorSenthil Kumaran <orsenthil@gmail.com>
Sat, 26 Feb 2011 03:44:03 +0000 (03:44 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Sat, 26 Feb 2011 03:44:03 +0000 (03:44 +0000)
Lib/test/test_dbm.py

index c1be7d95fae4368818431d5d6059bd85901976d7..74c9c44b23044413c60da8d4d4483ecc6b4197ab 100644 (file)
@@ -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))