mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08: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
@ -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…
Reference in New Issue
Block a user