Unverified Kaydet (Commit) 1561703a authored tarafından Tim Golden's avatar Tim Golden Kaydeden (comit) GitHub

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
üst c6dabe37
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment