]> granicus.if.org Git - python/commitdiff
test_logging: extended time range for rollover test.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 13 May 2011 15:41:57 +0000 (16:41 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 13 May 2011 15:41:57 +0000 (16:41 +0100)
Lib/test/test_logging.py

index f215834c62895fad749576dcc3b367e8753361fa..c6a64f3464ea5f477c37544dce83789c979a69eb 100644 (file)
@@ -3515,7 +3515,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
         # could of course still fail, but the chances are lower.
         found = False
         now = datetime.datetime.now()
-        GO_BACK = 2 * 60 # seconds
+        GO_BACK = 5 * 60 # seconds
         for secs in range(GO_BACK):
             prev = now - datetime.timedelta(seconds=secs)
             fn = self.fn + prev.strftime(".%Y-%m-%d_%H-%M-%S")