mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Always try to delete the data file before and after the test.
This will hopefully avoid spurious failures if the file doesn't have the proper permissions to write for some reason.
This commit is contained in:
parent
2595e7606c
commit
e7789b186d
2 changed files with 6 additions and 5 deletions
|
@ -25,13 +25,10 @@ class TestGzip(unittest.TestCase):
|
|||
filename = test_support.TESTFN
|
||||
|
||||
def setUp (self):
|
||||
pass
|
||||
test_support.unlink(self.filename)
|
||||
|
||||
def tearDown (self):
|
||||
try:
|
||||
os.unlink(self.filename)
|
||||
except os.error:
|
||||
pass
|
||||
test_support.unlink(self.filename)
|
||||
|
||||
|
||||
def test_write (self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue