summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shelve.py
diff options
context:
space:
mode:
authorSteven Bethard <steven.bethard@gmail.com>2008-03-18 16:00:19 (GMT)
committerSteven Bethard <steven.bethard@gmail.com>2008-03-18 16:00:19 (GMT)
commited427e7be974bc89b232e6c3b4afe3e6ba54563b (patch)
tree18c0310a2c1e88dea5d1d4a79ea0e2fff1cf86e4 /Lib/test/test_shelve.py
parentf084e048200b63273d8fea16d6146df5f6f1b058 (diff)
downloadcpython-ed427e7be974bc89b232e6c3b4afe3e6ba54563b.zip
cpython-ed427e7be974bc89b232e6c3b4afe3e6ba54563b.tar.gz
cpython-ed427e7be974bc89b232e6c3b4afe3e6ba54563b.tar.bz2
Use test_support.unlink instead of os.unlink in tearDown(). (Seems to fix an occasional failure in Windows Vista.)
Diffstat (limited to 'Lib/test/test_shelve.py')
-rw-r--r--Lib/test/test_shelve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py
index 447d06d..ffd2120 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}