From: Steven Bethard Date: Tue, 18 Mar 2008 16:00:19 +0000 (+0000) Subject: Use test_support.unlink instead of os.unlink in tearDown(). (Seems to fix an occasio... X-Git-Tag: v2.6a2~267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed427e7be974bc89b232e6c3b4afe3e6ba54563b;p=python Use test_support.unlink instead of os.unlink in tearDown(). (Seems to fix an occasional failure in Windows Vista.) --- diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py index 447d06d70e..ffd2120372 100644 --- a/Lib/test/test_shelve.py +++ b/Lib/test/test_shelve.py @@ -99,7 +99,7 @@ class TestShelveBase(mapping_tests.BasicTestMappingProtocol): 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}