From cc760a646b64104f6703a76ea767bbc71220b59b Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 13 Jul 2022 17:27:21 +0200 Subject: [PATCH] tests - fix datetime import again --- tests/Test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Test.py b/tests/Test.py index 6a435c1d1..5f4d82535 100644 --- a/tests/Test.py +++ b/tests/Test.py @@ -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)