Commit caf9eb8a authored by Vinay Sajip's avatar Vinay Sajip

Re-enabled test with more diagnostics.

parent fc6f4cd3
...@@ -3964,7 +3964,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): ...@@ -3964,7 +3964,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
finally: finally:
rh.close() 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): def test_compute_rollover_weekly_attime(self):
currentTime = int(time.time()) currentTime = int(time.time())
today = currentTime - currentTime % 86400 today = currentTime - currentTime % 86400
...@@ -3992,6 +3992,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): ...@@ -3992,6 +3992,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
actual = rh.computeRollover(today) actual = rh.computeRollover(today)
if actual != expected: if actual != expected:
print('failed in timezone: %d' % time.timezone) print('failed in timezone: %d' % time.timezone)
print('local vars: %s' % locals())
self.assertEqual(actual, expected) self.assertEqual(actual, expected)
if day == wday: if day == wday:
# goes into following week # goes into following week
...@@ -3999,6 +4000,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): ...@@ -3999,6 +4000,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
actual = rh.computeRollover(today + 13 * 60 * 60) actual = rh.computeRollover(today + 13 * 60 * 60)
if actual != expected: if actual != expected:
print('failed in timezone: %d' % time.timezone) print('failed in timezone: %d' % time.timezone)
print('local vars: %s' % locals())
self.assertEqual(actual, expected) self.assertEqual(actual, expected)
finally: finally:
rh.close() rh.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment