fix errorsAfterMidnight

This commit is contained in:
Damien Elmes 2020-04-08 10:05:19 +10:00
parent bca49bd054
commit 11bbb906a5

View file

@ -64,11 +64,14 @@ testDir = os.path.dirname(__file__)
def errorsAfterMidnight(func):
lt = time.localtime()
if lt.tm_hour < 4:
print("test disabled around cutoff", func)
else:
func()
def wrapper():
lt = time.localtime()
if lt.tm_hour < 4:
print("test disabled around cutoff", func)
else:
func()
return wrapper
def isNearCutoff():