changeset: 75412:0457fb8bf39c parent: 75409:f1441971b621 user: Vinay Sajip date: Mon Mar 05 09:43:47 2012 +0000 files: Lib/test/test_logging.py description: Added more diagnostics for diagnosing #12151. diff -r f1441971b621 -r 0457fb8bf39c Lib/test/test_logging.py --- a/Lib/test/test_logging.py Mon Mar 05 09:30:47 2012 +0100 +++ b/Lib/test/test_logging.py Mon Mar 05 09:43:47 2012 +0000 @@ -3651,6 +3651,8 @@ 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)

AltStyle によって変換されたページ (->オリジナル) /