[Python-checkins] cpython: Added delay before record creation.
vinay.sajip
python-checkins at python.org
Mon Mar 5 21:03:01 CET 2012
http://hg.python.org/cpython/rev/09f19e575724
changeset: 75443:09f19e575724
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Mon Mar 05 20:02:53 2012 +0000
summary:
Added delay before record creation.
files:
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
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3654,10 +3654,10 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list