From: Vinay Sajip Date: Wed, 27 Feb 2013 23:33:52 +0000 (+0000) Subject: Closes #17313: Deleted test file created by test_logging. X-Git-Tag: v3.4.0a1~1304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9e9754c474bdf86ca6c7fab0310ac826f277ca3;p=thirdparty%2FPython%2Fcpython.git Closes #17313: Deleted test file created by test_logging. --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index c6cd64a5bac6..bfa7d772f42c 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()