aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index c6cd64a5bac..bfa7d772f42 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3406,6 +3406,7 @@ class BasicConfigTest(unittest.TestCase):
self.addCleanup(expected.close)
self.assertEqual(handler.stream.mode, expected.stream.mode)
self.assertEqual(handler.stream.name, expected.stream.name)
+ self.addCleanup(os.remove, 'test.log')
def test_filemode(self):
logging.basicConfig(filename='test.log', filemode='wb')
@@ -3414,6 +3415,7 @@ class BasicConfigTest(unittest.TestCase):
expected = logging.FileHandler('test.log', 'wb')
self.addCleanup(expected.close)
self.assertEqual(handler.stream.mode, expected.stream.mode)
+ self.addCleanup(os.remove, 'test.log')
def test_stream(self):
stream = io.StringIO()