[Python-checkins] cpython: Issue #17713: Added failure diagnostics to test.

vinay.sajip python-checkins at python.org
Mon Apr 15 12:59:46 CEST 2013


http://hg.python.org/cpython/rev/193e7ad92900
changeset:   83389:193e7ad92900
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Mon Apr 15 11:59:35 2013 +0100
summary:
  Issue #17713: Added failure diagnostics to test.

files:
  Lib/test/test_logging.py |  6 +++++-
  1 files changed, 5 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
@@ -3988,12 +3988,16 @@
                 expected += 12 * 60 * 60
                 # Add in adjustment for today
                 expected += today
-                actual = rh.computeRollover(currentTime)
+                actual = rh.computeRollover(today)
+                if actual != expected:
+                    print('failed in timezone: %d' % time.timezone)
                 self.assertEqual(actual, expected)
                 if day == wday:
                     # goes into following week
                     expected += 7 * 24 * 60 * 60
                 actual = rh.computeRollover(today + 13 * 60 * 60)
+                if actual != expected:
+                    print('failed in timezone: %d' % time.timezone)
                 self.assertEqual(actual, expected)
             finally:
                 rh.close()

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


More information about the Python-checkins mailing list