There was an error while loading. Please reload this page.
1 parent 998b890 commit c76cb9cCopy full SHA for c76cb9c
1 file changed
Lib/test/test_logging.py
@@ -6446,11 +6446,12 @@ def setUp(self):
6446
self.rmfiles = []
6447
6448
def tearDown(self):
6449
- for fn in self.rmfiles:
6450
- os.unlink(fn)
6451
- if os.path.exists(self.fn):
6452
- os.unlink(self.fn)
6453
- BaseTest.tearDown(self)
+ try:
+ for fn in self.rmfiles:
+ os_helper.unlink(fn)
+ os_helper.unlink(self.fn)
+ finally:
6454
+ BaseTest.tearDown(self)
6455
6456
def assertLogFile(self, filename):
6457
"Assert a log file is there and register it for deletion"
0 commit comments