[Python-checkins] r61525 - python/trunk/Lib/test/test_shelve.py

steven.bethard python-checkins at python.org
Tue Mar 18 17:00:19 CET 2008


Author: steven.bethard
Date: Tue Mar 18 17:00:19 2008
New Revision: 61525

Modified:
   python/trunk/Lib/test/test_shelve.py
Log:
Use test_support.unlink instead of os.unlink in tearDown().  (Seems to fix an occasional failure in Windows Vista.)

Modified: python/trunk/Lib/test/test_shelve.py
==============================================================================
--- python/trunk/Lib/test/test_shelve.py	(original)
+++ python/trunk/Lib/test/test_shelve.py	Tue Mar 18 17:00:19 2008
@@ -99,7 +99,7 @@
         self._db = []
         if not self._in_mem:
             for f in glob.glob(self.fn+"*"):
-                os.unlink(f)
+                test_support.unlink(f)
 
 class TestAsciiFileShelve(TestShelveBase):
     _args={'protocol':0}


More information about the Python-checkins mailing list