]> granicus.if.org Git - python/commitdiff
Issue #17713: Added failure diagnostics to test.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 15 Apr 2013 10:59:35 +0000 (11:59 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Mon, 15 Apr 2013 10:59:35 +0000 (11:59 +0100)
Lib/test/test_logging.py

index 99476de4278e052d3c6ce8cc86d7ad4ee913d30d..47f03c7f37b9b24b9bc104922ced6facff2d1430 100644 (file)
@@ -3988,12 +3988,16 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
                 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()