mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Use test_support.unlink instead of os.unlink in tearDown(). (Seems to fix an occasional failure in Windows Vista.)
This commit is contained in:
parent
f084e04820
commit
ed427e7be9
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue