[Python-checkins] cpython: test_logging: extended time range for rollover test.

vinay.sajip python-checkins at python.org
Fri May 13 17:42:04 CEST 2011


http://hg.python.org/cpython/rev/806f136bb9f2
changeset:   70077:806f136bb9f2
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Fri May 13 16:41:57 2011 +0100
summary:
  test_logging: extended time range for rollover test.

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
@@ -3515,7 +3515,7 @@
         # 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")

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list