summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_bz2.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py
index e62729a..f158b90 100644
--- a/Lib/test/test_bz2.py
+++ b/Lib/test/test_bz2.py
@@ -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):