mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
tests - fix datetime import again
This commit is contained in:
parent
db2c35cb3f
commit
cc760a646b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue