time of day hack in tests was off by an hour

This commit is contained in:
Damien Elmes 2019-12-27 08:43:25 +10:00
parent 6a83654718
commit 0b755202e7

View File

@ -10,7 +10,7 @@ from tests.shared import getEmptyCol
# Between 2-4AM, shift the time back so test assumptions hold. # Between 2-4AM, shift the time back so test assumptions hold.
lt = time.localtime() lt = time.localtime()
if lt.tm_hour > 2 and lt.tm_hour < 4: if lt.tm_hour >= 2 and lt.tm_hour < 4:
orig_time = time.time orig_time = time.time
def adjusted_time(): def adjusted_time():