From caf9eb8adacfe67ab310172d499ffaf2e3f4145c Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sun, 12 May 2013 00:04:58 +0100 Subject: [PATCH] Re-enabled test with more diagnostics. --- Lib/test/test_logging.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index c9ddc3efed1..7c22d9d8b9e 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -3964,7 +3964,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): finally: rh.close() - @unittest.skipIf(True, 'Temporarily skipped while failures investigated.') + #@unittest.skipIf(True, 'Temporarily skipped while failures investigated.') def test_compute_rollover_weekly_attime(self): currentTime = int(time.time()) today = currentTime - currentTime % 86400 @@ -3992,6 +3992,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): actual = rh.computeRollover(today) if actual != expected: print('failed in timezone: %d' % time.timezone) + print('local vars: %s' % locals()) self.assertEqual(actual, expected) if day == wday: # goes into following week @@ -3999,6 +4000,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): actual = rh.computeRollover(today + 13 * 60 * 60) if actual != expected: print('failed in timezone: %d' % time.timezone) + print('local vars: %s' % locals()) self.assertEqual(actual, expected) finally: rh.close()