From de8cee491a9a66d1515d4ff55bdef36ff84c1d10 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 13 Jul 2022 16:53:46 +0200 Subject: [PATCH] tests - add missing imports --- tests/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/main.py b/tests/main.py index 0d4477cc8..54d53c669 100755 --- a/tests/main.py +++ b/tests/main.py @@ -4,6 +4,8 @@ from sys import path, argv, exit from glob import glob from os import getcwd from os.path import isfile +from traceback import format_exc +from json import loads path.append(getcwd() + "/utils") path.append(getcwd() + "/tests") @@ -41,6 +43,6 @@ for example in glob("./examples/*") : log("TESTS", "❌", "Tests failed for " + tests["name"]) exit(1) except : - log("TESTS", "❌", "Exception while executing test for example " + example + " : " + traceback.format_exc()) + log("TESTS", "❌", "Exception while executing test for example " + example + " : " + format_exc()) log("TESTS", "ℹ️", "All tests finished for " + test_type + " !") \ No newline at end of file