Skip to content

Commit

Permalink
Fix DeprecationWarning in tests (#1608)
Browse files Browse the repository at this point in the history
Regexes should use raw strings since `\s` isn't a valid Python escape sequence.
  • Loading branch information
sfc-gh-fcampbell committed Sep 20, 2024
1 parent 7091776 commit b9f0b15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def assert_that_result_is_usage_error(
result: CommandResult, expected_error_message: str
) -> None:
assert result.output is not None
result_output = re.sub("\s*││\s*", " ", result.output.replace("\n", "")) # type: ignore
result_output = re.sub(r"\s*││\s*", " ", result.output.replace("\n", "")) # type: ignore
assert result.exit_code == 2, result.output
assert expected_error_message in result_output, result.output

Expand Down

0 comments on commit b9f0b15

Please sign in to comment.