Browse Source

Added more diagnostics for diagnosing #12151.

pull/2332/head
Vinay Sajip 14 years ago
parent
commit
b6f6670d87
  1. 2
      Lib/test/test_logging.py

2
Lib/test/test_logging.py

@ -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…
Cancel
Save