(original) (raw)
changeset: 83389:193e7ad92900 user: Vinay Sajip <vinay_sajip@yahoo.co.uk> date: Mon Apr 15 11:59:35 2013 +0100 files: Lib/test/test_logging.py description: Issue #17713: Added failure diagnostics to test. diff -r a88310d86455 -r 193e7ad92900 Lib/test/test_logging.py --- a/Lib/test/test_logging.py Sun Apr 14 19:22:47 2013 +0200 +++ b/Lib/test/test_logging.py Mon Apr 15 11:59:35 2013 +0100 @@ -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() </vinay_sajip@yahoo.co.uk>