Skip to content

Commit

Permalink
Present the result, when the script passes unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Feb 25, 2022
1 parent d49bf43 commit d84fd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d84fd07

Please sign in to comment.