]> granicus.if.org Git - python/commitdiff
Merged revisions 88631 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Sat, 26 Feb 2011 07:11:27 +0000 (07:11 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Sat, 26 Feb 2011 07:11:27 +0000 (07:11 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88631 | senthil.kumaran | 2011-02-26 11:44:03 +0800 (Sat, 26 Feb 2011) | 2 lines

  Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available (Patch by Ray.Allen)
........

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