diff --git a/tests/test_shell.py b/tests/test_shell.py index 56a14c7..e09e44f 100644 --- a/tests/test_shell.py +++ b/tests/test_shell.py @@ -9,7 +9,7 @@ def test_shell_ok(): def test_shell_error(): - with pytest.raises(shell.MigrateCIShellException, match="/bin/sh: 1: oof: not found\n"): + with pytest.raises(shell.MigrateCIShellException, match=r"oof.+not found"): shell.exec("oof")