mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Added more diagnostics for diagnosing #12151.
This commit is contained in:
parent
4e99a315b7
commit
b6f6670d87
1 changed files with 2 additions and 0 deletions
|
@ -3651,6 +3651,8 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
|
|||
def test_rollover(self):
|
||||
fh = logging.handlers.TimedRotatingFileHandler(self.fn, 'S',
|
||||
backupCount=1)
|
||||
fmt = logging.Formatter('%(asctime)s %(message)s')
|
||||
fh.setFormatter(fmt)
|
||||
r = logging.makeLogRecord({'msg': 'testing'})
|
||||
fh.emit(r)
|
||||
self.assertLogFile(self.fn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue