diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-03-05 09:50:11 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-03-05 09:50:11 (GMT) |
commit | 49ab14f4529e06ecd7d6804ea80f62ab6094a386 (patch) | |
tree | 6513842dc27e55937c2a0fcb91e1d22213137e72 /Lib/test/test_logging.py | |
parent | fcbb4169b982ce06c5701ad18898084dfa569598 (diff) | |
parent | 682c979871b42cd21856735c5900f9bee832bfb1 (diff) | |
download | cpython-49ab14f4529e06ecd7d6804ea80f62ab6094a386.zip cpython-49ab14f4529e06ecd7d6804ea80f62ab6094a386.tar.gz cpython-49ab14f4529e06ecd7d6804ea80f62ab6094a386.tar.bz2 |
Merge.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |