[Python-checkins] r88631 - python/branches/py3k/Lib/test/test_dbm.py

senthil.kumaran python-checkins at python.org
Sat Feb 26 04:44:03 CET 2011


Author: senthil.kumaran
Date: Sat Feb 26 04:44:03 2011
New Revision: 88631

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


Modified:
   python/branches/py3k/Lib/test/test_dbm.py

Modified: python/branches/py3k/Lib/test/test_dbm.py
==============================================================================
--- python/branches/py3k/Lib/test/test_dbm.py	(original)
+++ python/branches/py3k/Lib/test/test_dbm.py	Sat Feb 26 04:44:03 2011
@@ -123,7 +123,7 @@
             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))


More information about the Python-checkins mailing list