mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-42349: Switch to test.support.unlink per review by Serhiy Storchaka (GH-8529)
Serhiy Storchaka pointed out that using test.support.unlink was preferable
This commit is contained in:
parent
c6dabe37e3
commit
1561703a78
1 changed files with 1 additions and 4 deletions
|
|
@ -81,10 +81,7 @@ class BaseTest(unittest.TestCase):
|
|||
os.close(fd)
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
os.unlink(self.filename)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
unlink(self.filename)
|
||||
|
||||
|
||||
class BZ2FileTest(BaseTest):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue