diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-03-05 20:02:53 +0000 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-03-05 20:02:53 +0000 |
| commit | b2fcd3a989404ff4daa9310b8ed573a67317c243 (patch) | |
| tree | 5ab4ee2649b9730072b0cdbda6e05cfa01d39435 /Lib/test/test_logging.py | |
| parent | bdb1cf1ca56db25b33fb15dd91eef2cc32cd8973 (diff) | |
| download | cpython-git-b2fcd3a989404ff4daa9310b8ed573a67317c243.tar.gz | |
Added delay before record creation.
Diffstat (limited to 'Lib/test/test_logging.py')
| -rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 1aa0bdb626..98a28193b4 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -3654,10 +3654,10 @@ class TimedRotatingFileHandlerTest(BaseFileTest): fmt = logging.Formatter('%(asctime)s %(message)s') fh.setFormatter(fmt) r1 = logging.makeLogRecord({'msg': 'testing - initial'}) - r2 = logging.makeLogRecord({'msg': 'testing - after delay'}) fh.emit(r1) self.assertLogFile(self.fn) time.sleep(1.1) # a little over a second ... + r2 = logging.makeLogRecord({'msg': 'testing - after delay'}) fh.emit(r2) fh.close() # At this point, we should have a recent rotated file which we |
