Display evaluated assertion expression if present

This commit is contained in:
baldurk committed 2026-09-30 12:29:31 +01:00
1 parent d3555c51af
commit 91ea80af1d
1 file changed
+3
+3
View File
@@ -179,6 +179,9 @@ class TestLogger:
else:
assert_msg = "Unknown Assertion"
if len(ex.args) > 0:
assert_msg += f": {ex.args[0]}"
self.rawprint(f"!+ ASSERT FAILURE in {self.test_name}: {assert_msg}")
elif isinstance(ex, TestFailureException):
self.rawprint(f"!+ FAILURE in {self.test_name}: {ex!s}")