diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-02-27 23:33:52 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-02-27 23:33:52 (GMT) |
commit | f9e9754c474bdf86ca6c7fab0310ac826f277ca3 (patch) | |
tree | d00a045c2364c85b627cfc61547a0c0947bdff36 /Lib/test/test_logging.py | |
parent | 25eed49a7088b5ac4be8b982e6ea3f29b8415a7b (diff) | |
download | cpython-f9e9754c474bdf86ca6c7fab0310ac826f277ca3.zip cpython-f9e9754c474bdf86ca6c7fab0310ac826f277ca3.tar.gz cpython-f9e9754c474bdf86ca6c7fab0310ac826f277ca3.tar.bz2 |
Closes #17313: Deleted test file created by test_logging.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index c6cd64a..bfa7d77 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() |