From b6f6670d87f922564d535062dda42eb6d54d36af Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Mon, 5 Mar 2012 09:43:47 +0000 Subject: Added more diagnostics for diagnosing #12151. --- Lib/test/test_logging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 92e6994..b490b6e 100644 --- a/Lib/test/test_logging.py +++ b/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) -- cgit v0.12