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:
Tim Golden 2018-07-28 18:27:11 +01:00 • committed by GitHub
parent c6dabe37e3
commit 1561703a78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):