summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-05-18 17:19:54 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-05-18 17:19:54 (GMT)
commit10e8c49a11856b26eaaf73aaee1bdad23bdbe804 (patch)
treea4f3ae9159521bdac457779f7ff42f08a708032a /Lib/test/test_logging.py
parent850800f15ef3cfa51dfafbc41a1bb574fb542ded (diff)
downloadcpython-10e8c49a11856b26eaaf73aaee1bdad23bdbe804.zip
cpython-10e8c49a11856b26eaaf73aaee1bdad23bdbe804.tar.gz
cpython-10e8c49a11856b26eaaf73aaee1bdad23bdbe804.tar.bz2
Re-enabled skipped test.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 8350d77..edb1c63 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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,