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 Oct 8, 2021
1 parent 4be3224 commit cf05595
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 @@ -642,7 +642,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 cf05595

Please sign in to comment.