mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Re-enabled skipped test.
This commit is contained in:
parent
850800f15e
commit
10e8c49a11
1 changed files with 2 additions and 2 deletions
|
@ -3964,14 +3964,14 @@ 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
|
||||||
|
|
||||||
atTime = datetime.time(12, 0, 0)
|
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):
|
for day in range(7):
|
||||||
rh = logging.handlers.TimedRotatingFileHandler(
|
rh = logging.handlers.TimedRotatingFileHandler(
|
||||||
self.fn, when='W%d' % day, interval=1, backupCount=0, utc=True,
|
self.fn, when='W%d' % day, interval=1, backupCount=0, utc=True,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue