tests - fix datetime import again

This commit is contained in:
florian 2022-07-13 17:27:21 +02:00
parent db2c35cb3f
commit cc760a646b

View file

@ -7,7 +7,7 @@ from shutil import rmtree
from os.path import isdir, join
from os import mkdir, makedirs, walk, chmod
from re import sub, MULTILINE
from datetime.datetime import today
from datetime import datetime
class Test(ABC) :
@ -19,7 +19,7 @@ class Test(ABC) :
self._log("instiantiated with " + str(len(tests)) + " tests and timeout of " + str(timeout) + "s")
def _log(self, msg, error=False) :
when = today().strftime("[%Y-%m-%d %H:%M:%S]")
when = datetime.today().strftime("[%Y-%m-%d %H:%M:%S]")
what = self._name + " - " + self.__kind + " - " + msg
if error :
print(when + " " + what, flush=True, file=stderr)