Commit 94b59bb1 authored by Guido van Rossum's avatar Guido van Rossum

Use test_support.unlink() instead of os.unlink().

parent 8d9db047
import os
import unittest
import shelve
import glob
......@@ -6,11 +5,11 @@ from test import test_support
class TestCase(unittest.TestCase):
fn = "shelftemp" + os.extsep + "db"
fn = "shelftemp.db"
def tearDown(self):
for f in glob.glob(self.fn+"*"):
os.unlink(f)
test_support.unlink(f)
def test_ascii_file_shelf(self):
s = shelve.open(self.fn, protocol=0)
......@@ -97,7 +96,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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment