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 18, 2022
1 parent 4ac94cf commit 0696daf
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 0696daf

Please sign in to comment.