Skip to content

Commit

Permalink
Fixed exception test for general use. Fixes: #34
Browse files Browse the repository at this point in the history
  • Loading branch information
bschroeter committed Oct 17, 2024
1 parent 7ced15e commit d15ee5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ def test_shell_exception():
try:
hu.shell("blah")
except hx.ShellException as ex:
assert ex.__str__() == "Error 127: /bin/sh: blah: command not found\n"

expected = f"Error {ex.returncode}: {ex.stderr}"
assert ex.__str__() == expected

0 comments on commit d15ee5a

Please sign in to comment.