From d84fd07bf1c34de6fde274d28259427083a4470e Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Fri, 8 Oct 2021 18:13:46 +0100 Subject: [PATCH] Present the result, when the script passes unexpectedly --- tests/lib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/__init__.py b/tests/lib/__init__.py index cb6364ebbb7..c8d68fea9b0 100644 --- a/tests/lib/__init__.py +++ b/tests/lib/__init__.py @@ -666,7 +666,7 @@ def run( if expect_error and not allow_error: if result.returncode == 0: __tracebackhide__ = True - raise AssertionError("Script passed unexpectedly.") + raise AssertionError(f"Script passed unexpectedly:\n{result}") _check_stderr( result.stderr,