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):
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():