]> granicus.if.org Git - python/commitdiff
Re-enabled skipped test.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 18 May 2013 17:19:54 +0000 (10:19 -0700)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 18 May 2013 17:19:54 +0000 (10:19 -0700)
Lib/test/test_logging.py

index 8350d77c2cf536c50818d4c0e71c2cea9147cf75..edb1c6383e0944e18299a712001ad6de9a2cdb24 100644 (file)
@@ -3964,14 +3964,14 @@ 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
 
         atTime = datetime.time(12, 0, 0)
 
-        wday = datetime.datetime.fromtimestamp(currentTime + time.timezone).weekday()
+        wday = time.gmtime(today).tm_wday
         for day in range(7):
             rh = logging.handlers.TimedRotatingFileHandler(
                 self.fn, when='W%d' % day, interval=1, backupCount=0, utc=True,