mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Closes #17313: Deleted test file created by test_logging.
This commit is contained in:
parent
25eed49a70
commit
f9e9754c47
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue