[Python-checkins] cpython: Updated test_rollover delay to just over a second.

vinay.sajip python-checkins at python.org
Tue May 24 08:12:47 CEST 2011


http://hg.python.org/cpython/rev/1b13707708b1
changeset:   70327:1b13707708b1
parent:      70325:9a16fa0c9548
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Tue May 24 07:12:41 2011 +0100
summary:
  Updated test_rollover delay to just over a second.

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
@@ -3586,7 +3586,7 @@
         r = logging.makeLogRecord({'msg': 'testing'})
         fh.emit(r)
         self.assertLogFile(self.fn)
-        time.sleep(1.0)
+        time.sleep(1.01)    # just a little over a second ...
         fh.emit(r)
         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