Skip to content

Commit

Permalink
Issue getlogbook#274: Updated for 2.7 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
Tucker Beck committed Sep 6, 2018
1 parent 4514c01 commit 21d7375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_file_handler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import pytest
import time
from datetime import datetime

import logbook
Expand Down Expand Up @@ -176,7 +177,7 @@ def test_timed_rotating_file_handler__not_timed_filename_for_current(

with open(basename, 'w') as file:
file.write('contents')
jan_first = datetime(2010, 1, 1).timestamp()
jan_first = time.mktime(datetime(2010, 1, 1).timetuple())
os.utime(basename, times=(jan_first, jan_first))

handler = logbook.TimedRotatingFileHandler(
Expand Down

0 comments on commit 21d7375

Please sign in to comment.