From: Vinay Sajip Date: Fri, 13 May 2011 15:41:57 +0000 (+0100) Subject: test_logging: extended time range for rollover test. X-Git-Tag: v3.3.0a1~2287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=252048c8a1c7f3e205338b401459e384d760873a;p=thirdparty%2FPython%2Fcpython.git test_logging: extended time range for rollover test. --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index f215834c6289..c6a64f3464ea 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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")