]> granicus.if.org Git - python/commitdiff
Re-enabled test with more diagnostics.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 11 May 2013 23:04:58 +0000 (00:04 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 11 May 2013 23:04:58 +0000 (00:04 +0100)
Lib/test/test_logging.py

index c9ddc3efed1f256043f7fff5ae80ea9fa334fbc3..7c22d9d8b9efadc7a9a37e7b886371e21bedaf0d 100644 (file)
@@ -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()