mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 16:20:36 +00:00
Display evaluated assertion expression if present
This commit is contained in:
1 file changed
+3
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user