]> granicus.if.org Git - python/commitdiff
Updated test_rollover delay to just over a second.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 24 May 2011 06:12:41 +0000 (07:12 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 24 May 2011 06:12:41 +0000 (07:12 +0100)
Lib/test/test_logging.py

index e4fc26644261c2b2d4760548f9903e743ae92331..b27ff6a4dd44aebcb61533ea37b62dc01a91303d 100644 (file)
@@ -3586,7 +3586,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
         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