fix errorsAfterMidnight

This commit is contained in:
Damien Elmes 2020-04-08 10:05:19 +10:00
parent 36ec7830a9
commit ce2890ca15

View file

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